mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-06 15:01:10 +00:00
Fix dumb mistake in the comparison function
This commit is contained in:
parent
bef2a12cc0
commit
cd01dd5d63
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user