summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-02-11 18:51:31 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-02-11 21:11:36 (GMT)
commit406d95f2d013bd17d79bbcf9438a2f03bd70a78a (patch)
treed0b2b3e1bebbb837b4383ece6fb8d85bd00e3114
parent4f9c412bf778e091d06cd01376b64cef15e3954c (diff)
downloadgit-406d95f2d013bd17d79bbcf9438a2f03bd70a78a.zip
git-406d95f2d013bd17d79bbcf9438a2f03bd70a78a.tar.gz
git-406d95f2d013bd17d79bbcf9438a2f03bd70a78a.tar.bz2
builtin-tag.c: guard config parser from value=NULL
user.signingkey configuration expects a string value. Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--builtin-tag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-tag.c b/builtin-tag.c
index 03e7015..4a4a88c 100644
--- a/builtin-tag.c
+++ b/builtin-tag.c
@@ -258,7 +258,7 @@ static int git_tag_config(const char *var, const char *value)
{
if (!strcmp(var, "user.signingkey")) {
if (!value)
- die("user.signingkey without value");
+ return config_error_nonbool(value);
set_signingkey(value);
return 0;
}