From b9134c76de91f36255cb6897e5b4411648f919f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Mon, 26 Oct 2020 00:55:25 +0100 Subject: [PATCH] use $SGIT instead of git --- bin/git-myshellconfig-checkout | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/git-myshellconfig-checkout b/bin/git-myshellconfig-checkout index 93389e0..1983540 100755 --- a/bin/git-myshellconfig-checkout +++ b/bin/git-myshellconfig-checkout @@ -85,13 +85,13 @@ if ${MYSHELLCONFIG_GIT_UPDATE_SUBMODULES-${MYSHELLCONFIG_GIT_UPDATE_SUBMODULES_D logdebug "update submodules" rc=0 - git config --file=.gitmodules -l | \ + $SGIT config --file=.gitmodules -l | \ grep url= | \ awk -F "=" -v srv="${MYSHElLCONFIG_GIT_SUBMODULE_SERVER-${MYSHElLCONFIG_GIT_SUBMODULE_SERVER_DEFAULT}}" \ '{gsub(/^.*github.com/,srv,$2); print $1" "$2}' | \ while read a b; do - logdebug "git config --file=.gitmodules ${a} ${b}" - git config --file=.gitmodules "${a}" "${b}" + logdebug "$SGIT config --file=.gitmodules ${a} ${b}" + $SGIT config --file=.gitmodules "${a}" "${b}" done # Submodules always have origin and master as repo and branch to track