Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [fixed PATCH] git-filter-branch.sh: Fix broken setting of GIT_DIR

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:43:28

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?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help