Steven Grimm [off-list ref] writes:
David Kastrup wrote:
quoted
Actually, wouldn't by far the most straightforward thing be if
git-rev-parse --git-dir always returned an absolute path (even when
being passed a relative path in GIT_DIR)?
That might also help get rid of an annoying failure mode where some
git commands (the shell script ones) fail if you cd into a git
repository via a symlink, while others (the builtins) work just fine.
It might be the easiest workaround for this issue to unset PWD
in git-sh-setup.sh (and git-clone.sh) where we unset CDPATH.
Anybody wants to try to come up with additional test scripts to
expose the problem and a patch to these two files?