From: Jeff King Date: Tue, 3 Oct 2017 13:43:47 +0000 (-0400) Subject: t7502: use diff.noprefix for --verbose test X-Git-Tag: v2.15.0-rc2~7^2~4^2~5 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/0fcf760e3cc336d28e0ab30e829ea33d37b3ae37 t7502: use diff.noprefix for --verbose test To check that "status -v" respects diff config, we set "color.diff" and look at the output of "status". We could equally well use any diff config. Since color output depends on a lot of other factors (like whether stdout is a tty, and how we interpret "always"), let's use a more mundane option. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- diff --git a/t/t7502-commit.sh b/t/t7502-commit.sh index 725687d5d5..d33a3cb331 100755 --- a/t/t7502-commit.sh +++ b/t/t7502-commit.sh @@ -171,9 +171,9 @@ test_expect_success 'verbose' ' test_expect_success 'verbose respects diff config' ' - test_config color.diff always && + test_config diff.noprefix true && git status -v >actual && - grep "\[1mdiff --git" actual + grep "diff --git negative negative" actual ' mesg_with_comment_and_newlines='