diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-12-11 10:51:11 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-12-11 10:51:11 -0200 |
commit | ec8e28032b3c73da9b55852ab4e29fc8b2efcf1d (patch) | |
tree | c90de05e95043bd55e9713334ac12ec4e12a7bc4 /git-update-superproject | |
parent | a9b0c1d89e82452c0e799ae7e4674b991e8a011b (diff) | |
download | utils-git-ec8e28032b3c73da9b55852ab4e29fc8b2efcf1d.tar.gz utils-git-ec8e28032b3c73da9b55852ab4e29fc8b2efcf1d.tar.bz2 |
Fix GIT_SSH_COMMAND usage
Diffstat (limited to 'git-update-superproject')
-rwxr-xr-x | git-update-superproject | 8 |
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 |