summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/push.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/push.c b/src/push.c
index 00745fbcc..f81a0aee9 100644
--- a/src/push.c
+++ b/src/push.c
@@ -380,9 +380,7 @@ static int queue_differences(
if (!git_oid_cmp(&b_entry->oid, &d_entry->oid))
goto loop;
- cmp = memcmp(b_entry->filename,
- d_entry->filename,
- b_entry->filename_len);
+ cmp = strcmp(b_entry->filename, d_entry->filename);
/* If the entries are both trees and they have the same name but are
* different, then we'll recurse after adding the right-hand entry */