diff --git a/builtin-config.c b/builtin-config.c
index 10447a704f7b3a1fb3b3053463a50ae2609a5684..8ee01bdecde1ede4062a630761ce56f3366f3a14 100644 (file)
--- a/builtin-config.c
+++ b/builtin-config.c
get_diff_color_found =
git_config_colorbool(var, value, stdout_is_tty);
}
+ if (!strcmp(var, "color.ui")) {
+ git_use_color_default = git_config_colorbool(var, value, stdout_is_tty);
+ return 0;
+ }
return 0;
}
if (!strcmp(get_color_slot, "color.diff"))
get_colorbool_found = get_diff_color_found;
if (get_colorbool_found < 0)
- get_colorbool_found = 0;
+ get_colorbool_found = git_use_color_default;
}
if (argc == 1) {