File tree Expand file tree Collapse file tree 2 files changed +15
-7
lines changed
.buildkite/scripts/run-agents/hooks Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- git sparse-checkout init --cone
4- git sparse-checkout set .buildkite
3+ # git sparse-checkout init --cone
4+ # git sparse-checkout set .buildkite
55
6- if [[ -n " ${ES_PARTIAL_CHECKOUT_PATHS:- } " ]]; then
7- git sparse-checkout add " $ES_PARTIAL_CHECKOUT_PATHS "
8- fi
6+ # if [[ -n "${ES_PARTIAL_CHECKOUT_PATHS:-}" ]]; then
7+ # git sparse-checkout add "$ES_PARTIAL_CHECKOUT_PATHS"
8+ # fi
99
10- git checkout HEAD
10+ # git checkout HEAD
Original file line number Diff line number Diff line change @@ -11,5 +11,13 @@ chmod +x "$HOME/git-wrapper/git"
1111
1212export PATH=" $HOME /git-wrapper:$PATH "
1313
14+ git init " ${BUILDKITE_BUILD_CHECKOUT_PATH} "
15+ git --git-dir " ${BUILDKITE_BUILD_CHECKOUT_PATH} /.git" remote add origin " ${BUILDKITE_REPO} "
16+ git --git-dir " ${BUILDKITE_BUILD_CHECKOUT_PATH} /.git" sparse-checkout init --cone
17+ git --git-dir " ${BUILDKITE_BUILD_CHECKOUT_PATH} /.git" sparse-checkout set .buildkite
18+ if [[ -n " ${ES_PARTIAL_CHECKOUT_PATHS:- } " ]]; then
19+ git --git-dir " ${BUILDKITE_BUILD_CHECKOUT_PATH} /.git" sparse-checkout add " $ES_PARTIAL_CHECKOUT_PATHS "
20+ fi
21+
1422export BUILDKITE_GIT_CLONE_FLAGS=" -v --filter=blob:none --no-checkout --depth=1 --sparse"
15- export BUILDKITE_GIT_FETCH_FLAGS=" -v --update-shallow"
23+ export BUILDKITE_GIT_FETCH_FLAGS=" -v --update-shallow --depth 1 "
You can’t perform that action at this time.
0 commit comments