mirror of
https://github.com/lineageos4microg/docker-lineage-cicd
synced 2024-11-09 10:09:56 +01:00
Make repo init switchable
This commit is contained in:
parent
fd213ff4b0
commit
031bad1b39
@ -187,12 +187,16 @@ for branch in ${BRANCH_NAME//,/ }; do
|
|||||||
echo ">> [$(date)] Resetting vendor and undoing patches disabled" | tee -a "$repo_log"
|
echo ">> [$(date)] Resetting vendor and undoing patches disabled" | tee -a "$repo_log"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$CALL_REPO_INIT" = true ]; then
|
||||||
echo ">> [$(date)] (Re)initializing branch repository" | tee -a "$repo_log"
|
echo ">> [$(date)] (Re)initializing branch repository" | tee -a "$repo_log"
|
||||||
if [ "$LOCAL_MIRROR" = true ]; then
|
if [ "$LOCAL_MIRROR" = true ]; then
|
||||||
( yes||: ) | repo init -u https://github.com/LineageOS/android.git --reference "$MIRROR_DIR" -b "$branch" --git-lfs &>> "$repo_log"
|
( yes||: ) | repo init -u https://github.com/LineageOS/android.git --reference "$MIRROR_DIR" -b "$branch" --git-lfs &>> "$repo_log"
|
||||||
else
|
else
|
||||||
( yes||: ) | repo init -u https://github.com/LineageOS/android.git -b "$branch" --git-lfs &>> "$repo_log"
|
( yes||: ) | repo init -u https://github.com/LineageOS/android.git -b "$branch" --git-lfs &>> "$repo_log"
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
echo ">> [$(date)] Calling repo init disabled"
|
||||||
|
fi
|
||||||
|
|
||||||
# Copy local manifests to the appropriate folder in order take them into consideration
|
# Copy local manifests to the appropriate folder in order take them into consideration
|
||||||
echo ">> [$(date)] Copying '$LMANIFEST_DIR/*.xml' to '.repo/local_manifests/'"
|
echo ">> [$(date)] Copying '$LMANIFEST_DIR/*.xml' to '.repo/local_manifests/'"
|
||||||
@ -433,7 +437,6 @@ for branch in ${BRANCH_NAME//,/ }; do
|
|||||||
echo ">> [$(date)] Calling mka for $codename, $branch branch disabled"
|
echo ">> [$(date)] Calling mka for $codename, $branch branch disabled"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Remove old zips and logs
|
# Remove old zips and logs
|
||||||
if [ "$DELETE_OLD_ZIPS" -gt "0" ]; then
|
if [ "$DELETE_OLD_ZIPS" -gt "0" ]; then
|
||||||
if [ "$ZIP_SUBDIR" = true ]; then
|
if [ "$ZIP_SUBDIR" = true ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user