summaryrefslogtreecommitdiffstats
path: root/builtin-log.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-02-11 19:48:55 +0100
committerJunio C Hamano <gitster@pobox.com>2008-02-11 22:11:36 +0100
commit995c45279e270811f53b7ff8bf44a07ed3457ddc (patch)
treef6b85b2d3ff53c0e167dc060ef431f8e2a00f51c /builtin-log.c
parentbuiltin-config.c: guard config parser from value=NULL (diff)
downloadgit-995c45279e270811f53b7ff8bf44a07ed3457ddc.tar.xz
git-995c45279e270811f53b7ff8bf44a07ed3457ddc.zip
builtin-log.c: guard config parser from value=NULL
format.subjectprefix configuration expects a string value. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-log.c')
-rw-r--r--builtin-log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-log.c b/builtin-log.c
index dcc9f81793..9458428a8b 100644
--- a/builtin-log.c
+++ b/builtin-log.c
@@ -219,7 +219,7 @@ static int git_log_config(const char *var, const char *value)
{
if (!strcmp(var, "format.subjectprefix")) {
if (!value)
- die("format.subjectprefix without value");
+ config_error_nonbool(var);
fmt_patch_subject_prefix = xstrdup(value);
return 0;
}