Skip to content
Snippets Groups Projects
Commit b2053cfc authored by rl1987's avatar rl1987
Browse files

Also disallow fixup/squash commits in maint-* and release-*

parent ffee0a63
No related branches found
Tags tor-0.2.2.10-alpha
No related merge requests found
#!/bin/sh
#!/bin/bash
# git pre-push hook script to prevent "fixup!" and "squash!" commit
# from ending up in master, or in any branch if CUR_BRANCH check is removed.
......@@ -10,7 +10,8 @@
z40=0000000000000000000000000000000000000000
CUR_BRANCH=$(git rev-parse --abbrev-ref HEAD)
if [ "$CUR_BRANCH" != "master" ]
if [ "$CUR_BRANCH" != "master" ] && [[ $CUR_BRANCH != release-* ]] &&
[[ $CUR_BRANCH != maint-* ]]
then
exit 0
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment