]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/merge.c
refs: convert dwim_ref and expand_ref to struct object_id
[thirdparty/git.git] / builtin / merge.c
index 99d2df965fd54c789b3979f02429090701e4387d..6071dbfe3466b9c67dcc9b888210cc23816e95d2 100644 (file)
@@ -454,7 +454,7 @@ static void merge_name(const char *remote, struct strbuf *msg)
        if (!remote_head)
                die(_("'%s' does not point to a commit"), remote);
 
-       if (dwim_ref(remote, strlen(remote), branch_head.hash, &found_ref) > 0) {
+       if (dwim_ref(remote, strlen(remote), &branch_head, &found_ref) > 0) {
                if (starts_with(found_ref, "refs/heads/")) {
                        strbuf_addf(msg, "%s\t\tbranch '%s' of .\n",
                                    oid_to_hex(&branch_head), remote);