git p4 test: avoid loop in client_view
[gitweb.git] / revision.c
index 2cce85a8e02b0b3a67365a6c2170f9d8fcd2b213..d7562ee5004379774c6fe1a74b0c503475a34ab5 100644 (file)
@@ -2283,7 +2283,7 @@ static int commit_match(struct commit *commit, struct rev_info *opt)
        if (buf.len)
                strbuf_addstr(&buf, commit->buffer);
 
-       if (opt->mailmap) {
+       if (opt->grep_filter.header_list && opt->mailmap) {
                if (!buf.len)
                        strbuf_addstr(&buf, commit->buffer);