add--interactive: handle initial commit better
[gitweb.git] / wt-status.c
index c0c247243b562a7579ff780b80dffef4774b60a9..bfd1b0fcc612a827adc7416626895b89e8504d90 100644 (file)
@@ -402,6 +402,8 @@ int git_status_config(const char *k, const char *v)
        }
        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;
        }