1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-06-15 08:46:26 +02:00

Improve patch to use git --exec-path: add to PATH instead.

If you (like me) are using a modified git straight out of its source
directory (ie. without installing), then --exec-path isn't actually correct.
Add it to the PATH instead, so if it is correct, it'll work, but if it's
not, we fall back to the previous behaviour.
This commit is contained in:
Avery Pennarun 2009-08-26 10:41:03 -04:00
parent 2987e6add3
commit 33aaa697a2

View File

@ -27,7 +27,8 @@ rejoin merge the new branch back into HEAD
squash merge subtree changes as a single commit
"
eval $(echo "$OPTS_SPEC" | git rev-parse --parseopt -- "$@" || echo exit $?)
. $(git --exec-path)/git-sh-setup
PATH=$(git --exec-path):$PATH
. git-sh-setup
require_work_tree
quiet=