decorate: clean up and document API
[gitweb.git] / builtin / fmt-merge-msg.c
index 27a2361e91dcd94cba4556b04b028286835f8823..22034f87e7f8c7fa1166d3731319aca610fef2a2 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/"))