blob: 02ad1c102a30a49011abb0fc6bed4cf8fad7ebb0 (
plain) (
blame)
1
2
3
4
5
6
7
|
#!/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
git update-index --add Jenkinsfile
printf "done.\n"
|