Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLea Wiemann <lewiemann@gmail.com>2008-06-13 02:35:59 +0400
committerJunio C Hamano <gitster@pobox.com>2008-06-13 09:22:55 +0400
commit7b7b4516def229846ae20a43818be7e0b30d4261 (patch)
tree0d1b5a4f8d2786ade1ac6e34d6676db33fe5e764
parentfa5b4f37e4517c7a422b227f565c9f21bdc8cc65 (diff)
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>
-rw-r--r--t/.gitattributes3
-rw-r--r--t/test-lib.sh2
2 files changed, 3 insertions, 2 deletions
diff --git a/t/.gitattributes b/t/.gitattributes
index 562b12e16e..ab6edbf19e 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 7a8bd27abc..e9c9081edf 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