fetch-pack: eliminate spurious error messages
[gitweb.git] / commit.c
index 1360bbd2cb7d9c83d128fd301bcee4763ac8f054..87268682f98f0cd0f18221b3647ad30dbcbc560e 100644 (file)
--- a/commit.c
+++ b/commit.c
@@ -68,7 +68,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))