Merge branch 'jc/fetch-refspec-doc-update' into maint
[gitweb.git] / t / t7004-tag.sh
index dbcd6f623c7e233b487d4d0c1dd7d71cb34059b0..62aa322846be36a2794d4089369292cecd319d6b 100755 (executable)
@@ -1914,7 +1914,13 @@ test_expect_success '%(color) omitted without tty' '
 '
 
 test_expect_success TTY '%(color) present with tty' '
-       test_terminal env TERM=vt100 git tag $color_args >actual.raw &&
+       test_terminal git tag $color_args >actual.raw &&
+       test_decode_color <actual.raw >actual &&
+       test_cmp expect.color actual
+'
+
+test_expect_success '--color overrides auto-color' '
+       git tag --color $color_args >actual.raw &&
        test_decode_color <actual.raw >actual &&
        test_cmp expect.color actual
 '