summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2020-02-24 07:44:17 -0700
committerSean Whitton <spwhitton@spwhitton.name>2020-02-24 07:44:17 -0700
commit9f7cb920aaa7e77ece254c3ae52ee6c96fc8386b (patch)
tree3a0bb6e51016846fcd97c5b915c114cc843b676d /hooks
parentd237dc0ec18d886855a4427d2113e6fbbe27d106 (diff)
downloaddotfiles-9f7cb920aaa7e77ece254c3ae52ee6c96fc8386b.tar.gz
pre-push: let dgit pushes through
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 eab1902c..e07cd406 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/dgit/"; then
+ # let's not interfere with a dgit push
+ :
elif echo "$remote_ref" | grep -Eq "^refs/tags/(archive/)?debian"; then
# let Debian upload tags through
: