Commit 1bd9c648 authored by Lea Wiemann's avatar Lea Wiemann Committed by Junio C Hamano

t/ resolve symlinks in working directory, for pathname comparisons

Without this, some tests will fail because they compare command output
of subprocesses (such as git) with $PWD -- but subprocesses have the
physical path as their working directory, whereas $PWD contains the
symlinked path.  This fixes it.
Signed-off-by: default avatarLea Wiemann <[email protected]>
Signed-off-by: default avatarJunio C Hamano <[email protected]>
parent d2b3691b
......@@ -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
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment