Skip to content

Commit

Permalink
explanatory comments
Browse files Browse the repository at this point in the history
  • Loading branch information
steveri committed Sep 14, 2023
1 parent f396adf commit 426c160
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .buildkite/bin/custom-checkout.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ echo I am in dir `pwd`
# Checkout master or BUILDKITE_COMMIT

cd $BUILDKITE_BUILD_CHECKOUT_PATH
# REQUEST_TYPE comes from set-trigfrom-and-reqtype.sh
if [ "$REQUEST_TYPE" == "SUBMOD_PR" ]; then
echo "Pull request from a submod repo: check out aha master branch"
git fetch -v --prune -- origin master
Expand All @@ -41,6 +42,7 @@ set +x

# Update submod

# Note PR_REPO_TAIL comes from set-trigfrom-and-reqtype.sh
if [ "$REQUEST_TYPE" == "SUBMOD_PR" ]; then
echo "--- Update submodule '$PR_REPO_TAIL' w commit '$BUILDKITE_COMMIT'"
(set -x; cd $PR_REPO_TAIL; git fetch origin && git checkout $BUILDKITE_COMMIT)
Expand Down

0 comments on commit 426c160

Please sign in to comment.