Skip to content

Commit

Permalink
Add switchable git lfs pull call
Browse files Browse the repository at this point in the history
  • Loading branch information
petefoth committed Jan 1, 2024
1 parent 1f56e13 commit 9527087
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ ENV SYNC_MIRROR true
ENV RESET_VENDOR_UNDO_PATCHES true
ENV CALL_REPO_INIT true
ENV CALL_REPO_SYNC true
ENV CALL_GIT_LFS_PULL false
ENV APPLY_PATCHES true
ENV PREPARE_BUILD_ENVIRONMENT true
ENV CALL_BREAKFAST true
Expand Down
7 changes: 7 additions & 0 deletions src/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,13 @@ for branch in ${BRANCH_NAME//,/ }; do
echo ">> [$(date)] Syncing branch repository disabled" | tee -a "$repo_log"
fi

if [ "$CALL_GIT_LFS_PULL" = true ]; then
echo ">> [$(date)] Calling git lfs pull" | tee -a "$repo_log"
repo forall -v -c git lfs pull &>> "$repo_log"
else
echo ">> [$(date)] Calling git lfs pull disabled" | tee -a "$repo_log"
fi

if [ ! -d "vendor/$vendor" ]; then
echo ">> [$(date)] Missing \"vendor/$vendor\", aborting"
exit 1
Expand Down

0 comments on commit 9527087

Please sign in to comment.