File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
.buildkite/scripts/run-agents/hooks Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 88# fi
99
1010# git checkout HEAD
11+
12+ export SKIP_GIT_WRAPPER=true
Original file line number Diff line number Diff line change @@ -9,7 +9,9 @@ mkdir -p "$HOME/git-wrapper"
99cat << 'EOF ' > "$HOME/git-wrapper/git"
1010#!/bin/bash
1111
12- if [[ "${1:-}" == "submodule" || "${1:-}" == "clone" ]]; then exit 0; fi
12+ if [[ -z "${SKIP_GIT_WRAPPER:-}" ]]; then
13+ if [[ "${1:-}" == "submodule" || "${1:-}" == "clone" || "${1:-}" == "clean" ]]; then exit 0; fi
14+ fi
1315
1416"$ES_ORIGINAL_GIT_BINARY" "${@}"
1517EOF
@@ -18,6 +20,7 @@ chmod +x "$HOME/git-wrapper/git"
1820
1921export PATH=" $HOME /git-wrapper:$PATH "
2022
23+ rm -rf " ${BUILDKITE_BUILD_CHECKOUT_PATH} "
2124git init " ${BUILDKITE_BUILD_CHECKOUT_PATH} "
2225git --git-dir " ${BUILDKITE_BUILD_CHECKOUT_PATH} /.git" remote add origin " ${BUILDKITE_REPO} "
2326git --git-dir " ${BUILDKITE_BUILD_CHECKOUT_PATH} /.git" sparse-checkout init --cone
You can’t perform that action at this time.
0 commit comments