summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4f342b9)
raw | patch | inline | side by side (parent: 4f342b9)
author | Junio C Hamano <gitster@pobox.com> | |
Mon, 11 Feb 2008 18:51:03 +0000 (10:51 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 11 Feb 2008 21:11:36 +0000 (13:11 -0800) |
showbranch.default configuration expects a string value.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-show-branch.c | patch | blob | history |
diff --git a/builtin-show-branch.c b/builtin-show-branch.c
index 6dc835d30a6a726c3dd40d23564b0dc32d20b7db..019abd3527e7c573c69900a58313749e2ef2280a 100644 (file)
--- a/builtin-show-branch.c
+++ b/builtin-show-branch.c
static int git_show_branch_config(const char *var, const char *value)
{
if (!strcmp(var, "showbranch.default")) {
+ if (!value)
+ return config_error_nonbool(var);
if (default_alloc <= default_num + 1) {
default_alloc = default_alloc * 3 / 2 + 20;
default_arg = xrealloc(default_arg, sizeof *default_arg * default_alloc);