From a9b0c1d89e82452c0e799ae7e4674b991e8a011b Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 6 Dec 2017 10:57:10 -0200 Subject: Ensure we have the right ssh command --- git-update-superproject | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'git-update-superproject') diff --git a/git-update-superproject b/git-update-superproject index 75ad999..a39efe6 100755 --- a/git-update-superproject +++ b/git-update-superproject @@ -12,9 +12,12 @@ if [ ! -e ".git" ]; then exit 1 fi +# Ensure we have the right ssh command +GIT_SSH_COMMAND="`git config core.sshCommand`" + # Run git fetch --all git pull $* || exit 1 git submodule sync --recursive -git submodule update --recursive --init +GIT_SSH_COMMAND="$GIT_SSH_COMMAND" git submodule update --recursive --init git submodules-checkout-branch -- cgit v1.2.3