summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'hooks')
-rwxr-xr-xhooks/git/pre-push_signed-off-by6
1 files changed, 6 insertions, 0 deletions
diff --git a/hooks/git/pre-push_signed-off-by b/hooks/git/pre-push_signed-off-by
index 775f505c..47321be6 100755
--- a/hooks/git/pre-push_signed-off-by
+++ b/hooks/git/pre-push_signed-off-by
@@ -15,6 +15,12 @@ while read local_ref local_sha remote_ref remote_sha; do
elif echo "$remote_ref" | grep -Eq "^refs/heads/(wip|tmp)/"; then
# wip/ branches may contain commits which are not signed off
:
+ elif [ $(git config --get --type=bool --default=false \
+ branch.${local_ref#refs/heads/}.signOffOptional) \
+ = "true" ]; then
+ # some local branches may be configured not to require signing
+ # off wherever they are pushed
+ :
else
if [ "$remote_sha" = $z40 ]
then