[PATCH v2 1/1] tests: fix failures when CDPATH is set
Ferry Huberts
mailings at hupie.com
Thu Jul 21 14:43:54 CEST 2011
From: Ferry Huberts <ferry.huberts at pelagic.nl>
Some tests would otherwise fail because commands such as
cd trash/repos/foo && git rev-list --reverse HEAD | head -1
would return 2 lines instead of 1: the 'cd' command also
prints the path when CDPATH is set.
Signed-off-by: Ferry Huberts <ferry.huberts at pelagic.nl>
---
tests/setup.sh | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/tests/setup.sh b/tests/setup.sh
index b2f1169..b9475a3 100755
--- a/tests/setup.sh
+++ b/tests/setup.sh
@@ -15,6 +15,7 @@
# run_test 'repo index' 'cgit_url "/" | tidy -e'
# run_test 'repo summary' 'cgit_url "/foo" | tidy -e'
+unset CDPATH
mkrepo() {
name=$1
--
1.7.6
More information about the CGit
mailing list