diff options
author | Philip Kelley <phkelley@hotmail.com> | 2013-03-19 15:43:34 -0400 |
---|---|---|
committer | Philip Kelley <phkelley@hotmail.com> | 2013-03-19 15:43:34 -0400 |
commit | cd01dd5d63a7e7899f31a9c1c3fd361bcdf3f74c (patch) | |
tree | 9704e6666b88faf20110dac06637f8c76f18f955 | |
parent | bef2a12cc0859a65a6bc6e72465395a4a48bd3e7 (diff) | |
download | libgit2-cd01dd5d63a7e7899f31a9c1c3fd361bcdf3f74c.tar.gz |
Fix dumb mistake in the comparison function
-rw-r--r-- | src/push.c | 4 |
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 */ |