Code

http-push: push <remote> :<branch> deletes remote branch
[git.git] / builtin-config.c
index 404bb449aec1e24012b390b1d76f05d4cc9c74af..2b9a4261d4e98281855ce856041eb730565a4869 100644 (file)
@@ -169,6 +169,8 @@ static char parsed_color[COLOR_MAXLEN];
 static int git_get_color_config(const char *var, const char *value)
 {
        if (!strcmp(var, get_color_slot)) {
+               if (!value)
+                       config_error_nonbool(var);
                color_parse(value, var, parsed_color);
                get_color_found = 1;
        }