summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 180483c)
raw | patch | inline | side by side (parent: 180483c)
author | Junio C Hamano <gitster@pobox.com> | |
Mon, 11 Feb 2008 19:00:57 +0000 (11:00 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 11 Feb 2008 21:11:37 +0000 (13:11 -0800) |
status.color.* and color.status.* expect a string value
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
wt-status.c | patch | blob | history |
diff --git a/wt-status.c b/wt-status.c
index c0c247243b562a7579ff780b80dffef4774b60a9..bfd1b0fcc612a827adc7416626895b89e8504d90 100644 (file)
--- a/wt-status.c
+++ b/wt-status.c
}
if (!prefixcmp(k, "status.color.") || !prefixcmp(k, "color.status.")) {
int slot = parse_status_slot(k, 13);
+ if (!v)
+ return config_error_nonbool(k);
color_parse(v, k, wt_status_colors[slot]);
return 0;
}