merge script: --squash, --ff from unborn branch are errors
[gitweb.git] / builtin / merge.c
index 37ce4f589f6582abf0d1ef5bd263f590a16853d5..2207f79969975225077ff16c7c368c4652548862 100644 (file)
@@ -437,7 +437,7 @@ static void merge_name(const char *remote, struct strbuf *msg)
                strbuf_addstr(&truname, "refs/heads/");
                strbuf_addstr(&truname, remote);
                strbuf_setlen(&truname, truname.len - len);
-               if (resolve_ref(truname.buf, buf_sha, 0, NULL)) {
+               if (resolve_ref(truname.buf, buf_sha, 1, NULL)) {
                        strbuf_addf(msg,
                                    "%s\t\tbranch '%s'%s of .\n",
                                    sha1_to_hex(remote_head->sha1),