summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 64f30e9)
raw | patch | inline | side by side (parent: 64f30e9)
author | Junio C Hamano <gitster@pobox.com> | |
Mon, 11 Feb 2008 18:56:06 +0000 (10:56 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 11 Feb 2008 21:11:37 +0000 (13:11 -0800) |
alias.* configuration expects a string value
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git.c | patch | blob | history |
index 15fec8974ad5361a2308b3c46424e896bc8e3246..0cb86884d738a8314f164c82e4cc619a9998f3db 100644 (file)
--- a/git.c
+++ b/git.c
static int git_alias_config(const char *var, const char *value)
{
if (!prefixcmp(var, "alias.") && !strcmp(var + 6, alias_command)) {
+ if (!value)
+ return config_error_nonbool(var);
alias_string = xstrdup(value);
}
return 0;