Skip to content

Commit 7b7b451

Browse files
Lea Wiemanngitster
authored andcommitted
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>
1 parent fa5b4f3 commit 7b7b451

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

t/.gitattributes

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
* -whitespace
1+
t[0-9][0-9][0-9][0-9]-*.sh -whitespace
2+
t[0-9][0-9][0-9][0-9]/* -whitespace

t/test-lib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ trap 'die' exit
168168
# environment variables to work around this.
169169
#
170170
# In particular, quoting isn't enough, as the path may contain the same quote
171-
# that we're using.
171+
# that we're using.
172172
test_set_editor () {
173173
FAKE_EDITOR="$1"
174174
export FAKE_EDITOR

0 commit comments

Comments
 (0)