]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/clean.c
color_parse: do not mention variable name in error message
[thirdparty/git.git] / builtin / clean.c
index 1032563e5fae880df9256c9eafaa96d60462ecd2..035ea391a2ec0c9399fa9868888d32e84c93b227 100644 (file)
@@ -116,8 +116,7 @@ static int git_clean_config(const char *var, const char *value, void *cb)
                        return 0;
                if (!value)
                        return config_error_nonbool(var);
-               color_parse(value, var, clean_colors[slot]);
-               return 0;
+               return color_parse(value, clean_colors[slot]);
        }
 
        if (!strcmp(var, "clean.requireforce")) {