Re: [PATCH] t9903: Don't fail when run from path accessed through symlink

2013-04-11 Thread Jeff King
On Thu, Apr 11, 2013 at 08:53:22PM +0200, Torstein Hegge wrote: > 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-ba

[PATCH] t9903: Don't fail when run from path accessed through symlink

2013-04-11 Thread Torstein Hegge
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