From: Junio C Hamano Date: Sat, 11 Aug 2007 20:10:31 GMT Subject: Re: [fixed PATCH] git-filter-branch.sh: Fix broken setting of GIT_DIR Message-ID: <7vveblltmw.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <46BDB0E7.3020506@midwinter.com> Steven Grimm writes: > David Kastrup wrote: >> 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?