We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e88e83a commit 73b25afCopy full SHA for 73b25af
.buildkite/scripts/run-agents/hooks/pre-checkout
@@ -6,7 +6,14 @@ ES_ORIGINAL_GIT_BINARY=$(which git)
6
export ES_ORIGINAL_GIT_BINARY
7
8
mkdir -p "$HOME/git-wrapper"
9
-cp "$DIR/../git" "$HOME/git-wrapper/"
+cat << 'EOF' > "$HOME/git-wrapper/git"
10
+#!/bin/bash
11
+
12
+if [[ "${1:-}" == "submodule" || "${1:-}" == "clone" ]]; then exit 0; fi
13
14
+"$ES_ORIGINAL_GIT_BINARY" "${@}"
15
+EOF
16
17
chmod +x "$HOME/git-wrapper/git"
18
19
export PATH="$HOME/git-wrapper:$PATH"
0 commit comments