aboutsummaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'hooks')
-rwxr-xr-xhooks/pre-commit2
1 files changed, 2 insertions, 0 deletions
diff --git a/hooks/pre-commit b/hooks/pre-commit
index f4522e4..02ad1c1 100755
--- a/hooks/pre-commit
+++ b/hooks/pre-commit
@@ -1,3 +1,5 @@
+#!/usr/bin/env bash
+
printf "[pre-commit hook] Updating branch reference in Jenkinsfile.test to allow self-testing... "
branch=$(git rev-parse --abbrev-ref HEAD)
sed -i "s/utils@.*'/utils@${branch}'/" Jenkinsfile