setup: expose enumerated repo info
[gitweb.git] / builtin / fmt-merge-msg.c
index e99b5ddbf9a51be17bc0d976c942c29afe6563cd..b69f7d3be2bd4585a6233d0f8361c55a76ae0a5d 100644 (file)
@@ -603,7 +603,7 @@ int fmt_merge_msg(struct strbuf *in, struct strbuf *out,
 
        /* get current branch */
        current_branch = current_branch_to_free =
-               resolve_refdup("HEAD", RESOLVE_REF_READING, head_oid.hash, NULL);
+               resolve_refdup("HEAD", RESOLVE_REF_READING, &head_oid, NULL);
        if (!current_branch)
                die("No current branch");
        if (starts_with(current_branch, "refs/heads/"))