]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/merge.c
refs: convert resolve_refdup and refs_resolve_refdup to struct object_id
[thirdparty/git.git] / builtin / merge.c
index 99d4b873f00ce8c4311f6b441b35f390e2e08d62..99d2df965fd54c789b3979f02429090701e4387d 100644 (file)
@@ -1142,7 +1142,7 @@ int cmd_merge(int argc, const char **argv, const char *prefix)
         * Check if we are _not_ on a detached HEAD, i.e. if there is a
         * current branch.
         */
-       branch = branch_to_free = resolve_refdup("HEAD", 0, head_oid.hash, NULL);
+       branch = branch_to_free = resolve_refdup("HEAD", 0, &head_oid, NULL);
        if (branch)
                skip_prefix(branch, "refs/heads/", &branch);
        if (!branch || is_null_oid(&head_oid))