aboutsummaryrefslogtreecommitdiff
path: root/check_bindir
diff options
context:
space:
mode:
authorTorstein Hegge <hegge@resisty.net>2013-04-11 20:53:22 +0200
committerJunio C Hamano <gitster@pobox.com>2013-04-11 16:07:22 -0700
commit3ba40b45d8db66c72ed38aa36afac1cd48c05534 (patch)
tree4ece2ad6b381989180c0c5341471046b1ce9bd3a /check_bindir
parent5bda18c186e455f8e65f976d3bf333ab1f4b5b53 (diff)
downloadgit-3ba40b45d8db66c72ed38aa36afac1cd48c05534.tar.gz
git-3ba40b45d8db66c72ed38aa36afac1cd48c05534.tar.xz
t9903: Don't fail when run from path accessed through symlink
When the git directory is accessed through a symlink like ln -s /tmp/git /tmp/git-symlink cd /tmp/git-symlink/t make -C .. && ./t9903-bash-prompt.sh $TRASH_DIRECTORY is /tmp/git-symlink/t/trash directory.t9903-bash-prompt and $(pwd -P) is /tmp/git/t/trash directory.t9903-bash-prompt. When __gitdir looks up the path through 'git rev-parse --git-dir', it will return paths similar to $(pwd -P). This behavior is already tested in t9903 'gitdir - resulting path avoids symlinks'. Signed-off-by: Torstein Hegge <hegge@resisty.net> Reviewed-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'check_bindir')
0 files changed, 0 insertions, 0 deletions