Code

Add explicit path of git installation by 'git --exec-path'.
authorkTln2 <gianluca.pacchiella@ktln2.org>
Thu, 20 Aug 2009 11:30:45 +0000 (13:30 +0200)
committerAvery Pennarun <apenwarr@gmail.com>
Thu, 20 Aug 2009 17:25:29 +0000 (13:25 -0400)
As pointed out by documentation, the correct use of 'git-sh-setup' is
using $(git --exec-path) to avoid problems with not standard
installations.

Signed-off-by: gianluca.pacchiella <pacchiel@studenti.ph.unito.it>
git-subtree.sh

index 962d5ff50939afac605d467926b10a25c88dc930..c5c0201448eb455ef29a25f5a2950d85ea74363f 100755 (executable)
@@ -27,7 +27,7 @@ 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-sh-setup
+. $(git --exec-path)/git-sh-setup
 require_work_tree
 
 quiet=