Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jt/avoid-ls-refs'
[gitweb.git]
/
pack-objects.c
diff --git
a/pack-objects.c
b/pack-objects.c
index 7f7b7dddf6955b2f791e2d97cd90381e5edfd339..7e624c30ebd7f344d711b608b29b2d48d21a1ba0 100644
(file)
--- a/
pack-objects.c
+++ b/
pack-objects.c
@@
-16,7
+16,7
@@
static uint32_t locate_object_entry_hash(struct packing_data *pdata,
while (pdata->index[i] > 0) {
uint32_t pos = pdata->index[i] - 1;
- if (
!hashcmp
(sha1, pdata->objects[pos].idx.oid.hash)) {
+ if (
hasheq
(sha1, pdata->objects[pos].idx.oid.hash)) {
*found = 1;
return i;
}