Skip to content

Commit

Permalink
t/.gitattributes: only ignore whitespace errors in test files
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lea Wiemann authored and Junio C Hamano committed Jun 13, 2008
1 parent fa5b4f3 commit 7b7b451
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion t/.gitattributes
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion t/test-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7b7b451

Please sign in to comment.