We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8dcc66 commit 1bf10e4Copy full SHA for 1bf10e4
1 file changed
git-subsplit.sh
@@ -31,13 +31,11 @@ eval "$(echo "$OPTS_SPEC" | git rev-parse --parseopt -- "$@" || echo exit $?)"
31
# We can run this from anywhere.
32
NONGIT_OK=1
33
34
-GIT_EXEC_PATH=$(git --exec-path)
35
-
36
-PATH=$PATH:$GIT_EXEC_PATH
+PATH=$PATH:$(git --exec-path)
37
38
. git-sh-setup
39
40
-if [ ! -e "${GIT_EXEC_PATH}/git-subtree" ]
+if [ "$(hash git-subtree &>/dev/null && echo OK)" = "" ]
41
then
42
die "Git subplit needs git subtree; install git subtree or upgrade git to >=1.7.11"
43
fi
@@ -197,7 +195,7 @@ subsplit_publish()
197
195
echo \# $PUSH_CMD
198
196
$PUSH_CMD
199
else
200
- $PUSH_CM
+ $PUSH_CMD
201
202
203
done
0 commit comments