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 <LeWiemann@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Lea Wiemann 2008-06-13 00:35:59 +02:00 committed by Junio C Hamano
parent fa5b4f37e4
commit 7b7b4516de
2 changed files with 3 additions and 2 deletions

3
t/.gitattributes vendored
View file

@ -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

View file

@ -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