Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-02-11 21:48:55 +0300
committerJunio C Hamano <gitster@pobox.com>2008-02-12 00:11:36 +0300
commit995c45279e270811f53b7ff8bf44a07ed3457ddc (patch)
treef6b85b2d3ff53c0e167dc060ef431f8e2a00f51c
parentf769982d02f70534789593e2bab889c9aa3a641c (diff)
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>
-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;
}