Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
get_short_sha1: parse tags when looking for treeish
[gitweb.git]
/
sha1_name.c
diff --git
a/sha1_name.c
b/sha1_name.c
index 9356ac246de4b27b7093d46fd480a8cb011d61b7..66365049a7410a1edc9138a7b3017210d3fe3339 100644
(file)
--- a/
sha1_name.c
+++ b/
sha1_name.c
@@
-269,7
+269,7
@@
static int disambiguate_treeish_only(const unsigned char *sha1, void *cb_data_un
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_TREE || obj->type == OBJ_COMMIT))
return 1;
return 0;