From cd01dd5d63a7e7899f31a9c1c3fd361bcdf3f74c Mon Sep 17 00:00:00 2001 From: Philip Kelley Date: Tue, 19 Mar 2013 15:43:34 -0400 Subject: Fix dumb mistake in the comparison function --- src/push.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/push.c') 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 */ -- cgit v1.2.3