use $SGIT instead of git
This commit is contained in:
parent
bfd3428f96
commit
b9134c76de
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue