submodules: overhaul documentation
[gitweb.git] / bisect.c
index aaab6ada2b620e10af5dff2ea894ecf3d44ac9ea..c952df692bef9ba1638e55448050db33ba76d399 100644 (file)
--- a/bisect.c
+++ b/bisect.c
@@ -705,7 +705,7 @@ static int bisect_checkout(const unsigned char *bisect_rev, int no_checkout)
 
 static struct commit *get_commit_reference(const struct object_id *oid)
 {
-       struct commit *r = lookup_commit_reference(oid->hash);
+       struct commit *r = lookup_commit_reference(oid);
        if (!r)
                die(_("Not a valid commit name %s"), oid_to_hex(oid));
        return r;