Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
gitweb: Make blame and snapshot a feature.
[gitweb.git]
/
sha1_name.c
diff --git
a/sha1_name.c
b/sha1_name.c
index c5a05faeb6b2bac74f4c5e06c5e397dc103bb190..f567454d22ada41b1565f26e7136e62b70769dfa 100644
(file)
--- a/
sha1_name.c
+++ b/
sha1_name.c
@@
-191,7
+191,7
@@
const char *find_unique_abbrev(const unsigned char *sha1, int len)
int status, is_null;
static char hex[41];
- is_null =
!memcmp(sha1, null_sha1, 20
);
+ is_null =
is_null_sha1(sha1
);
memcpy(hex, sha1_to_hex(sha1), 40);
if (len == 40 || !len)
return hex;