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
f53c7b1730
commit
ea4b854f12
13
src/build.sh
13
src/build.sh
@ -187,11 +187,15 @@ for branch in ${BRANCH_NAME//,/ }; do
|
||||
echo ">> [$(date)] Resetting vendor and undoing patches disabled" | tee -a "$repo_log"
|
||||
fi
|
||||
|
||||
echo ">> [$(date)] (Re)initializing branch repository" | tee -a "$repo_log"
|
||||
if [ "$LOCAL_MIRROR" = true ]; then
|
||||
( yes||: ) | repo init -u https://github.com/LineageOS/android.git --reference "$MIRROR_DIR" -b "$branch" --git-lfs &>> "$repo_log"
|
||||
if [ "$CALL_REPO_INIT" = true ]; then
|
||||
echo ">> [$(date)] (Re)initializing branch repository" | tee -a "$repo_log"
|
||||
if [ "$LOCAL_MIRROR" = true ]; then
|
||||
( yes||: ) | repo init -u https://github.com/LineageOS/android.git --reference "$MIRROR_DIR" -b "$branch" --git-lfs &>> "$repo_log"
|
||||
else
|
||||
( yes||: ) | repo init -u https://github.com/LineageOS/android.git -b "$branch" --git-lfs &>> "$repo_log"
|
||||
fi
|
||||
else
|
||||
( yes||: ) | repo init -u https://github.com/LineageOS/android.git -b "$branch" --git-lfs &>> "$repo_log"
|
||||
echo ">> [$(date)] Calling repo init disabled"
|
||||
fi
|
||||
|
||||
# Copy local manifests to the appropriate folder in order take them into consideration
|
||||
@ -433,7 +437,6 @@ for branch in ${BRANCH_NAME//,/ }; do
|
||||
echo ">> [$(date)] Calling mka for $codename, $branch branch disabled"
|
||||
fi
|
||||
|
||||
|
||||
# Remove old zips and logs
|
||||
if [ "$DELETE_OLD_ZIPS" -gt "0" ]; then
|
||||
if [ "$ZIP_SUBDIR" = true ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user