add submodule handling
This commit is contained in:
parent
f97fe52d2b
commit
b73aa189a9
1 changed files with 5 additions and 2 deletions
|
@ -105,8 +105,11 @@ if $dorepoupdate; then
|
|||
no changes in local repo
|
||||
$MSC_GIT checkout ${PRE}${PRE:+/}${MSC_GIT_BRANCH}
|
||||
EOF
|
||||
$MSC_GIT checkout ${PRE}${PRE:+/}${MSC_GIT_BRANCH} 1>>"${MSC_LOGFILE}" 2>>"${MSC_LOGFILE}"|| { gitupdateend; exit 2; }
|
||||
$MSC_GIT merge FETCH_HEAD 1>>"${MSC_LOGFILE}" 2>>"${MSC_LOGFILE}"|| { gitupdateend; exit 3; }
|
||||
$SGIT checkout ${PRE}${PRE:+/}${MSC_GIT_BRANCH} 1>>"${MSC_LOGFILE}" 2>>"${MSC_LOGFILE}"|| { gitupdateend; exit 2; }
|
||||
$SGIT merge FETCH_HEAD 1>>"${MSC_LOGFILE}" 2>>"${MSC_LOGFILE}"|| { gitupdateend; exit 3; }
|
||||
if ${dosubmodupdate:+false}; then
|
||||
$SGIT submodule update --init --recursive
|
||||
fi
|
||||
touch $MSC_GIT_UPD_REPO_STATFILE
|
||||
else
|
||||
logwarning -n " Lokale Änderungen festgestellt:"
|
||||
|
|
Loading…
Reference in a new issue