parse-options: automatically infer PARSE_OPT_LITERAL_ARGHELP
[gitweb.git] / builtin / fmt-merge-msg.c
index 22034f87e7f8c7fa1166d3731319aca610fef2a2..8e8a15ea4ad6de2bb73f63d39a0895a263918774 100644 (file)
@@ -377,7 +377,8 @@ static void shortlog(const char *name,
                        string_list_append(&subjects,
                                           oid_to_hex(&commit->object.oid));
                else
-                       string_list_append(&subjects, strbuf_detach(&sb, NULL));
+                       string_list_append_nodup(&subjects,
+                                                strbuf_detach(&sb, NULL));
        }
 
        if (opts->credit_people)