Commit cd01dd5d by Philip Kelley

Fix dumb mistake in the comparison function

parent bef2a12c
...@@ -380,9 +380,7 @@ static int queue_differences( ...@@ -380,9 +380,7 @@ static int queue_differences(
if (!git_oid_cmp(&b_entry->oid, &d_entry->oid)) if (!git_oid_cmp(&b_entry->oid, &d_entry->oid))
goto loop; goto loop;
cmp = memcmp(b_entry->filename, cmp = strcmp(b_entry->filename, d_entry->filename);
d_entry->filename,
b_entry->filename_len);
/* If the entries are both trees and they have the same name but are /* 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 */ * different, then we'll recurse after adding the right-hand entry */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment