Convert remaining callers of lookup_commit_reference* to object_id
[gitweb.git] / commit.c
index 73c78c2b80c1a21e83f1942347a76fb76511a0d3..ec41ba5e09f2b0fb7204219f00f3af85537b20cd 100644 (file)
--- a/commit.c
+++ b/commit.c
@@ -216,9 +216,9 @@ int for_each_commit_graft(each_commit_graft_fn fn, void *cb_data)
        return ret;
 }
 
-int unregister_shallow(const unsigned char *sha1)
+int unregister_shallow(const struct object_id *oid)
 {
-       int pos = commit_graft_pos(sha1);
+       int pos = commit_graft_pos(oid->hash);
        if (pos < 0)
                return -1;
        if (pos + 1 < commit_graft_nr)