Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
sha1_name.c: introduce get_sha1_committish()
[gitweb.git]
/
commit.c
diff --git
a/commit.c
b/commit.c
index 35af4988f0ff83c6a3379ea9f6de4e4e1568c39f..8b84efff98296abf97690a914750568103aebced 100644
(file)
--- a/
commit.c
+++ b/
commit.c
@@
-67,7
+67,7
@@
struct commit *lookup_commit_reference_by_name(const char *name)
unsigned char sha1[20];
struct commit *commit;
- if (get_sha1(name, sha1))
+ if (get_sha1
_committish
(name, sha1))
return NULL;
commit = lookup_commit_reference(sha1);
if (!commit || parse_commit(commit))