Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
get_short_sha1(): correctly disambiguate type-limited abbreviation
[gitweb.git]
/
sha1_name.c
diff --git
a/sha1_name.c
b/sha1_name.c
index 8bc20c54b17d4f1c08b4c7f8d8f38bb6a9e25011..13c3d75e8173cb2d4a4595ed09bcd304a69b5880 100644
(file)
--- a/
sha1_name.c
+++ b/
sha1_name.c
@@
-241,7
+241,7
@@
static int disambiguate_committish_only(const unsigned char *sha1, void *cb_data
return 0;
/* We need to do this the hard way... */
- obj = deref_tag(
lookup
_object(sha1), NULL, 0);
+ obj = deref_tag(
parse
_object(sha1), NULL, 0);
if (obj && obj->type == OBJ_COMMIT)
return 1;
return 0;