Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
builtin-tag.c: guard config parser from value=NULL
author
Junio C Hamano
<gitster@pobox.com>
Mon, 11 Feb 2008 18:51:31 +0000
(10:51 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 11 Feb 2008 21:11:36 +0000
(13:11 -0800)
user.signingkey configuration expects a string value.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-tag.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
4f9c412
)
diff --git
a/builtin-tag.c
b/builtin-tag.c
index 03e70155fc676a8dd38ca5cef800ed4a446e921a..4a4a88c10b4b2f9e55662bd4c1c17051ae7e6aac 100644
(file)
--- 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;
}