Merge branch 'pw/status-with-corrupt-sequencer-state'
[gitweb.git] / builtin / show-ref.c
index 07ff311b46aee82f0cf5521d3b380a4d64d873e3..6456da70cc2c4d6a86c2466c483dd815b15bbb45 100644 (file)
@@ -24,7 +24,7 @@ static void show_one(const char *refname, const struct object_id *oid)
        const char *hex;
        struct object_id peeled;
 
-       if (!has_sha1_file(oid->hash))
+       if (!has_object_file(oid))
                die("git show-ref: bad ref %s (%s)", refname,
                    oid_to_hex(oid));