From: Lea Wiemann Date: Thu, 12 Jun 2008 22:35:59 +0000 (+0200) Subject: t/.gitattributes: only ignore whitespace errors in test files X-Git-Tag: v1.5.6-rc3~19 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7b7b4516def229846ae20a43818be7e0b30d4261;p=git.git t/.gitattributes: only ignore whitespace errors in test files Only ignore whitespace errors in t/tNNNN-*.sh and the t/tNNNN subdirectories. Other files (like test libraries) should still be checked. Also fix a whitespace error in t/test-lib.sh. Signed-off-by: Lea Wiemann Signed-off-by: Junio C Hamano --- diff --git a/t/.gitattributes b/t/.gitattributes index 562b12e16..ab6edbf19 100644 --- a/t/.gitattributes +++ b/t/.gitattributes @@ -1 +1,2 @@ -* -whitespace +t[0-9][0-9][0-9][0-9]-*.sh -whitespace +t[0-9][0-9][0-9][0-9]/* -whitespace diff --git a/t/test-lib.sh b/t/test-lib.sh index 7a8bd27ab..e9c9081ed 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -168,7 +168,7 @@ trap 'die' exit # environment variables to work around this. # # In particular, quoting isn't enough, as the path may contain the same quote -# that we're using. +# that we're using. test_set_editor () { FAKE_EDITOR="$1" export FAKE_EDITOR