]> git.ipfire.org Git - thirdparty/git.git/blobdiff - shallow.c
Merge branch 'jk/mailmap-only-at-root'
[thirdparty/git.git] / shallow.c
index 91b9e1073c9fb8427c42eb8a638e628f4a13c22a..9ed18eb8849b27856b8cc409921757f7f069b28b 100644 (file)
--- a/shallow.c
+++ b/shallow.c
@@ -41,7 +41,7 @@ int register_shallow(struct repository *r, const struct object_id *oid)
 
 int unregister_shallow(const struct object_id *oid)
 {
-       int pos = commit_graft_pos(the_repository, oid->hash);
+       int pos = commit_graft_pos(the_repository, oid);
        if (pos < 0)
                return -1;
        if (pos + 1 < the_repository->parsed_objects->grafts_nr)