use $SGIT instead of git

This commit is contained in:
Jakobus Schürz 2020-10-26 00:55:25 +01:00
parent bfd3428f96
commit b9134c76de

View file

@ -85,13 +85,13 @@ if ${MYSHELLCONFIG_GIT_UPDATE_SUBMODULES-${MYSHELLCONFIG_GIT_UPDATE_SUBMODULES_D
logdebug "update submodules" logdebug "update submodules"
rc=0 rc=0
git config --file=.gitmodules -l | \ $SGIT config --file=.gitmodules -l | \
grep url= | \ grep url= | \
awk -F "=" -v srv="${MYSHElLCONFIG_GIT_SUBMODULE_SERVER-${MYSHElLCONFIG_GIT_SUBMODULE_SERVER_DEFAULT}}" \ awk -F "=" -v srv="${MYSHElLCONFIG_GIT_SUBMODULE_SERVER-${MYSHElLCONFIG_GIT_SUBMODULE_SERVER_DEFAULT}}" \
'{gsub(/^.*github.com/,srv,$2); print $1" "$2}' | \ '{gsub(/^.*github.com/,srv,$2); print $1" "$2}' | \
while read a b; do while read a b; do
logdebug "git config --file=.gitmodules ${a} ${b}" logdebug "$SGIT config --file=.gitmodules ${a} ${b}"
git config --file=.gitmodules "${a}" "${b}" $SGIT config --file=.gitmodules "${a}" "${b}"
done done
# Submodules always have origin and master as repo and branch to track # Submodules always have origin and master as repo and branch to track