]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/replace.c
refs: convert delete_ref and refs_delete_ref to struct object_id
[thirdparty/git.git] / builtin / replace.c
index 3e71a771523d8566590bfbd5de71b08acf79e3a4..2854eaa0f3b05449a3fd7f42b41f80b9114daeca 100644 (file)
@@ -128,7 +128,7 @@ static int for_each_replace_name(const char **argv, each_replace_name_fn fn)
 static int delete_replace_ref(const char *name, const char *ref,
                              const struct object_id *oid)
 {
-       if (delete_ref(NULL, ref, oid->hash, 0))
+       if (delete_ref(NULL, ref, oid, 0))
                return 1;
        printf("Deleted replace ref '%s'\n", name);
        return 0;