1
0
mirror of https://github.com/lineageos4microg/docker-lineage-cicd synced 2024-11-09 10:09:56 +01:00

Tweak calls to repo sync

- add retry-fetches
- -c to --current-branch
This commit is contained in:
Pete Fotheringham 2024-09-02 21:57:15 +01:00
parent 707508ddbe
commit b8705d2b99

@ -183,7 +183,7 @@ if [ "$LOCAL_MIRROR" = true ]; then
fi
if [ "$SYNC_MIRROR" = true ]; then
echo ">> [$(date)] Syncing mirror repository" | tee -a "$repo_log"
repo sync "${jobs_arg[@]}" --force-sync --no-clone-bundle &>> "$repo_log"
repo sync "${jobs_arg[@]}" "${retry_fetches_arg[@]}" --force-sync --no-clone-bundle &>> "$repo_log"
else
echo ">> [$(date)] Sync mirror repository disabled" | tee -a "$repo_log"
fi
@ -226,7 +226,7 @@ for codename in ${devices//,/ }; do
# `repo sync`
if [ "$CALL_REPO_SYNC" = true ]; then
echo ">> [$(date)] Syncing branch repository" | tee -a "$repo_log"
repo sync "${jobs_arg[@]}" -c --force-sync &>> "$repo_log"
repo sync "${jobs_arg[@]}" "${retry_fetches_arg[@]}" --current-branch --force-sync &>> "$repo_log"
else
echo ">> [$(date)] Syncing branch repository disabled" | tee -a "$repo_log"
fi
@ -299,9 +299,9 @@ for codename in ${devices//,/ }; do
else
echo ">> [$(date)] Preparing build environment disabled"
fi
userscriptfail=false
# Call `before.sh`
if [ -f /root/userscripts/before.sh ]; then
echo ">> [$(date)] Running before.sh"