summaryrefslogtreecommitdiff
path: root/git-subtree.sh
diff options
context:
space:
mode:
authorLibravatar Avery Pennarun <apenwarr@gmail.com>2010-06-24 16:57:58 -0400
committerLibravatar Avery Pennarun <apenwarr@gmail.com>2010-06-24 16:57:58 -0400
commitdf2302d77449832eb4167999d747aef57e4bd1fc (patch)
tree42eccc4e3d9c5f461ab8e0b8ac3b91ebc8cc7dee /git-subtree.sh
parentMerge remote branch 'origin/master' (diff)
downloadtgif-df2302d77449832eb4167999d747aef57e4bd1fc.tar.xz
Another fix for PATH and msysgit.
Evan Shaw tells me the previous fix didn't work. Let's use this one instead, which he says does work. This fix is kind of wrong because it will run the "correct" git-sh-setup *after* the one in /usr/bin, if there is one, which could be weird if you have multiple versions of git installed. But it works on my Linux and his msysgit, so it's obviously better than what we had before.
Diffstat (limited to 'git-subtree.sh')
-rwxr-xr-xgit-subtree.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/git-subtree.sh b/git-subtree.sh
index a15d91ffb1..781eef3783 100755
--- a/git-subtree.sh
+++ b/git-subtree.sh
@@ -30,10 +30,8 @@ squash merge subtree changes as a single commit
"
eval $(echo "$OPTS_SPEC" | git rev-parse --parseopt -- "$@" || echo exit $?)
-OPATH=$PATH
-PATH=$(git --exec-path):$PATH
+PATH=$PATH:$(git --exec-path)
. git-sh-setup
-PATH=$OPATH # apparently needed for some versions of msysgit
require_work_tree