prune_ref(): call `ref_transaction_add_update()` directly
[gitweb.git] / builtin / submodule--helper.c
index 06ed02f99402be6a7edb36ff0eb08b903c513c6c..5946a7ca93b19846c66bbbb1669ef762deea629c 100644 (file)
@@ -1144,7 +1144,7 @@ static int push_check(int argc, const char **argv, const char *prefix)
        argv++;
        argc--;
        /* Get the submodule's head ref and determine if it is detached */
-       head = resolve_refdup("HEAD", 0, head_oid.hash, NULL);
+       head = resolve_refdup("HEAD", 0, &head_oid, NULL);
        if (!head)
                die(_("Failed to resolve HEAD as a valid ref."));
        if (!strcmp(head, "HEAD"))