aboutsummaryrefslogtreecommitdiffstats
path: root/priv
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2020-02-21 12:46:55 +0100
committerLoïc Hoguin <[email protected]>2020-02-21 12:46:55 +0100
commitb70babdf6e9c7f50cf7b9351abd01c556d20a665 (patch)
tree8d1fd7f1befc1f090667a9fe7701f82639f9d290 /priv
parent164cc2f672ed3d3adb95db0fe062a78b5713c4fe (diff)
downloadci-b70babdf6e9c7f50cf7b9351abd01c556d20a665.tar.gz
ci-b70babdf6e9c7f50cf7b9351abd01c556d20a665.tar.bz2
ci-b70babdf6e9c7f50cf7b9351abd01c556d20a665.zip
Add a post-checkout hook to fetch branches/tags
Diffstat (limited to 'priv')
-rw-r--r--priv/buildkite-post-checkout-hook7
1 files changed, 7 insertions, 0 deletions
diff --git a/priv/buildkite-post-checkout-hook b/priv/buildkite-post-checkout-hook
new file mode 100644
index 0000000..6e9646b
--- /dev/null
+++ b/priv/buildkite-post-checkout-hook
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+set -e
+
+# Ensure we are getting the branches and tags should some
+# tests rely on them. For example release upgrade test suites.
+git fetch -v origin +refs/heads/\*:refs/remotes/origin/\* +refs/tags/\*:refs/tags/\*