brasse/post_receive_email.py — Issue #3: Error when pushing on a new branch
Author: fletort
Created: 2012-02-01 14:34:36+00:00
State: open

If a push to a new branch (to create it on the receiver) :

File "/srv/git/repositories/sandbox.git/hooks/post_receive_email.py", line 166, in main
post_receive(mailer, config[EMAILPREFIX], config[SMTP_SUBJECT])
File "/srv/git/repositories/sandbox.git/hooks/post_receive_email.py", line 134, in post_receive
process_commits(commits, mailer, subject_prefix, subject_template)
File "/srv/git/repositories/sandbox.git/hooks/post_receive_email.py", line 114, in process_commits
assert match
AssertionError