From: Torstein Hegge Date: Thu, 11 Apr 2013 18:53:22 +0000 (+0200) Subject: t9903: Don't fail when run from path accessed through symlink X-Git-Tag: v1.8.3-rc0~52^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/3ba40b45d8db66c72ed38aa36afac1cd48c05534?ds=inline;hp=3ba40b45d8db66c72ed38aa36afac1cd48c05534 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 Reviewed-by: Jeff King Signed-off-by: Junio C Hamano ---