aboutsummaryrefslogtreecommitdiff
path: root/hooks/pre-commit
blob: f4522e496a628503925f2af1bbb56c59e1fa2873 (plain) (blame)
1
2
3
4
5
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"