aboutsummaryrefslogtreecommitdiff
path: root/git-update-superproject
diff options
context:
space:
mode:
Diffstat (limited to 'git-update-superproject')
-rwxr-xr-xgit-update-superproject8
1 files changed, 7 insertions, 1 deletions
diff --git a/git-update-superproject b/git-update-superproject
index a39efe6..603053a 100755
--- a/git-update-superproject
+++ b/git-update-superproject
@@ -19,5 +19,11 @@ GIT_SSH_COMMAND="`git config core.sshCommand`"
git fetch --all
git pull $* || exit 1
git submodule sync --recursive
-GIT_SSH_COMMAND="$GIT_SSH_COMMAND" git submodule update --recursive --init
+
+if [ ! -z "$GIT_SSH_COMMAND" ]; then
+ GIT_SSH_COMMAND="$GIT_SSH_COMMAND" git submodule update --recursive --init
+else
+ git submodule update --recursive --init
+fi
+
git submodules-checkout-branch