Code

t/test-lib.sh: resolve symlinks in working directory, for pathname comparisons
authorLea Wiemann <lewiemann@gmail.com>
Sat, 31 May 2008 21:11:21 +0000 (23:11 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 1 Jun 2008 01:32:17 +0000 (18:32 -0700)
commit1bd9c648408e3dd79882ab4c23af3b791c9e3c21
tree24710b2aedd1336dee0edd8b82fd7258788ad448
parentd2b3691b61d516a0ad2bf700a2a5d9113ceff0b1
t/test-lib.sh: 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: Lea Wiemann <LeWiemann@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib.sh