Skip to content

Commit

Permalink
Support commitmsg configurations without destination
Browse files Browse the repository at this point in the history
In this case, just don't send any commit messages. This is still useful
for cases where we want a pingurl to be hit as a result of the push.
  • Loading branch information
mhagander committed Jan 29, 2018
1 parent 89652d4 commit aa855ab
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions commitmsg.py
Expand Up @@ -306,6 +306,12 @@ def parse_annotated_tag(lines):
l = sys.stdin.readline()
if not l: break

# If no receiver is defined, just eat up all the input but don't send
# any email. We still want to run to completion so that we can send
# the pingurls, if any
if not c.has_option('commitmsg', 'destination'):
continue

(oldobj, newobj, ref) = l.split()

# Build the email
Expand Down

0 comments on commit aa855ab

Please sign in to comment.