Commit cd01dd5d63a7e7899f31a9c1c3fd361bcdf3f74c

Philip Kelley 2013-03-19T15:43:34

Fix dumb mistake in the comparison function

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/push.c b/src/push.c
index 00745fb..f81a0ae 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 */