Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'lw/test-fix'
author
Junio C Hamano
<gitster@pobox.com>
Mon, 2 Jun 2008 06:45:37 +0000
(23:45 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 2 Jun 2008 06:45:37 +0000
(23:45 -0700)
* lw/test-fix:
t/test-lib.sh: resolve symlinks in working directory, for pathname comparisons
t/test-lib.sh
patch
|
blob
|
history
raw
(from parent 1:
0cc01c9
)
diff --git
a/t/test-lib.sh
b/t/test-lib.sh
index 3bf570b068dd56c802e7bdcef0384aa8e1209985..7a8bd27abc79a43a9248c3bcee8d6a3670e30fe3 100644
(file)
--- a/
t/test-lib.sh
+++ b/
t/test-lib.sh
@@
-419,7
+419,9
@@
rm -fr "$test" || {
}
test_create_repo "$test"
-cd "$test" || exit 1
+# Use -P to resolve symlinks in our working directory so that the cwd
+# in subprocesses like git equals our $PWD (for pathname comparisons).
+cd -P "$test" || exit 1
this_test=$(expr "./$0" : '.*/\(t[0-9]*\)-[^/]*$')
for skp in $GIT_SKIP_TESTS