diff --git a/t/t4026-color.sh b/t/t4026-color.sh
index 49eced20e7f9346ac6d52891c271ab3ef6d0982b..d5ccdd0cf8061e797e88185bfddb0864f73291dd 100755 (executable)
--- a/t/t4026-color.sh
+++ b/t/t4026-color.sh
invalid_color "dimX"
'
+test_expect_success 'unknown color slots are ignored (diff)' '
+ git config --unset diff.color.new
+ git config color.diff.nosuchslotwilleverbedefined white &&
+ git diff --color
+'
+
+test_expect_success 'unknown color slots are ignored (branch)' '
+ git config color.branch.nosuchslotwilleverbedefined white &&
+ git branch -a
+'
+
+test_expect_success 'unknown color slots are ignored (status)' '
+ git config color.status.nosuchslotwilleverbedefined white || exit
+ git status
+ case $? in 0|1) : ok ;; *) false ;; esac
+'
+
test_done