Skip to content

Commit

Permalink
Use product-specific URLs in repo init calls
Browse files Browse the repository at this point in the history
  • Loading branch information
petefoth committed Jan 1, 2025
1 parent cd02a7a commit d5d73e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/new_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ if [ "$LOCAL_MIRROR" = true ]; then
if [ "$INIT_MIRROR" = true ]; then
if [ ! -d .repo ]; then
echo ">> [$(date)] Initializing mirror repository" | tee -a "$repo_log"
( yes||: ) | repo init -u https://github.com/LineageOS/mirror --mirror --no-clone-bundle -p linux --git-lfs &>> "$repo_log"
( yes||: ) | repo init -u "$MIRROR_REPO" --mirror --no-clone-bundle -p linux --git-lfs &>> "$repo_log"
fi
else
echo ">> [$(date)] Initializing mirror repository disabled" | tee -a "$repo_log"
Expand Down Expand Up @@ -244,9 +244,9 @@ for codename in ${devices//,/ }; do
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" -g default,-darwin,-muppets,muppets_"${codename}" --git-lfs &>> "$repo_log"
( yes||: ) | repo init -u "$SRC_REPO" --reference "$MIRROR_DIR" -b "$branch" -g default,-darwin,-muppets,muppets_"${codename}" --git-lfs &>> "$repo_log"
else
( yes||: ) | repo init -u https://github.com/LineageOS/android.git -b "$branch" -g default,-darwin,-muppets,muppets_"${codename}" --git-lfs &>> "$repo_log"
( yes||: ) | repo init -u "$SRC_REPO" -b "$branch" -g default,-darwin,-muppets,muppets_"${codename}" --git-lfs &>> "$repo_log"
fi
else
echo ">> [$(date)] Calling repo init disabled"
Expand Down

0 comments on commit d5d73e3

Please sign in to comment.