mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Also disallow fixup/squash commits in maint-* and release-*
This commit is contained in:
parent
ffee0a6384
commit
b2053cfc44
@ -1,4 +1,4 @@
|
||||
#!/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
|
||||
|
Loading…
Reference in New Issue
Block a user