aboutsummaryrefslogtreecommitdiffstats
path: root/priv/buildkite-post-checkout-hook
diff options
context:
space:
mode:
Diffstat (limited to 'priv/buildkite-post-checkout-hook')
-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/\*