Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
gitview.txt: improve asciidoc markup
[gitweb.git]
/
object.c
diff --git
a/object.c
b/object.c
index b5d8ed467d1c10c2f2dd596717159f7ee48a8007..fdcfff7c86057bf8e5a7285518f186c67a1715bb 100644
(file)
--- a/
object.c
+++ b/
object.c
@@
-58,7
+58,7
@@
struct object *lookup_object(const unsigned char *sha1)
i = hashtable_index(sha1);
while ((obj = obj_hash[i]) != NULL) {
- if (!
memcmp(sha1, obj->sha1, 20
))
+ if (!
hashcmp(sha1, obj->sha1
))
break;
i++;
if (i == obj_hash_size)