]> git.ipfire.org Git - thirdparty/git.git/blobdiff - sha1_name.c
kill limit_pathspec_to_literal() as it's only used by parse_pathspec()
[thirdparty/git.git] / sha1_name.c
index 90419efe1052406381af3e35b70dc996fe8533ce..1a75fac05feaefa3cc0c57896aa6ee70813a324a 100644 (file)
@@ -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;