Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Add write_or_die(), a helper function
[gitweb.git]
/
convert-objects.c
diff --git
a/convert-objects.c
b/convert-objects.c
index 168771ed857dd9e95b1e14da40f1e39d18f7b2cf..4e7ff7517f40f5dd5c23cd3fd6a42d3cb621aec1 100644
(file)
--- a/
convert-objects.c
+++ b/
convert-objects.c
@@
-39,7
+39,7
@@
static struct entry *lookup_entry(unsigned char *sha1)
while (low < high) {
int next = (low + high) / 2;
struct entry *n = convert[next];
- int cmp =
memcmp(sha1, n->old_sha1, 20
);
+ int cmp =
hashcmp(sha1, n->old_sha1
);
if (!cmp)
return n;
if (cmp < 0) {