提交 88c447e8 编写于 作者: A Alex Riesen 提交者: Junio C Hamano

Handle missing prefix for "Subject:" as if no prefix given

Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 e754e990
......@@ -200,7 +200,7 @@ void show_log(struct rev_info *opt, const char *sep)
digits_in_number(opt->total),
opt->nr, opt->total);
subject = buffer;
} else if (opt->total == 0) {
} else if (opt->total == 0 && opt->subject_prefix && *opt->subject_prefix) {
static char buffer[256];
snprintf(buffer, sizeof(buffer),
"Subject: [%s] ",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册