summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2020-02-17 17:33:08 -0700
committerSean Whitton <spwhitton@spwhitton.name>2020-02-17 17:33:17 -0700
commit45112fbe296f75e57af032922e095a733d4c03ff (patch)
treed787702a02179d8db25265957b534f8a06485cdd /hooks
parentc637b9a58e2d67c9b4517e38a173c2eaec2784fe (diff)
downloaddotfiles-45112fbe296f75e57af032922e095a733d4c03ff.tar.gz
don't require Debian upload tags to be signed off
Diffstat (limited to 'hooks')
-rwxr-xr-xhooks/git/pre-push_signed-off-by3
1 files changed, 3 insertions, 0 deletions
diff --git a/hooks/git/pre-push_signed-off-by b/hooks/git/pre-push_signed-off-by
index f429ad7e..eab1902c 100755
--- a/hooks/git/pre-push_signed-off-by
+++ b/hooks/git/pre-push_signed-off-by
@@ -15,6 +15,9 @@ 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 echo "$remote_ref" | grep -Eq "^refs/tags/(archive/)?debian"; then
+ # let Debian upload tags through
+ :
elif [ $(git config --get --type=bool --default=false \
branch.${local_ref#refs/heads/}.signOffOptional) \
= "true" ]; then