merge: notice local merging of tags and keep it unwrapped
[gitweb.git] / builtin / merge.c
index dffd5ec1245865259fd4e72cc304286a1a5b4633..6a44b6d485fd9fd6621ed07d267a95a951695495 100644 (file)
@@ -441,6 +441,11 @@ static void merge_name(const char *remote, struct strbuf *msg)
                                    sha1_to_hex(branch_head), remote);
                        goto cleanup;
                }
+               if (!prefixcmp(found_ref, "refs/tags/")) {
+                       strbuf_addf(msg, "%s\t\ttag '%s' of .\n",
+                                   sha1_to_hex(branch_head), remote);
+                       goto cleanup;
+               }
                if (!prefixcmp(found_ref, "refs/remotes/")) {
                        strbuf_addf(msg, "%s\t\tremote-tracking branch '%s' of .\n",
                                    sha1_to_hex(branch_head), remote);