Skip to content

Commit

Permalink
Merge branch 'lw/test-fix'
Browse files Browse the repository at this point in the history
* lw/test-fix:
  t/test-lib.sh: resolve symlinks in working directory, for pathname comparisons
  • Loading branch information
Junio C Hamano committed Jun 2, 2008
2 parents 0cc01c9 + 1bd9c64 commit f0d2a05
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion t/test-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f0d2a05

Please sign in to comment.