don't mention main branch in email subjects

This commit is contained in:
Frédéric Péters 2020-12-29 12:04:53 +01:00
parent 7e8775fcb6
commit e70895101b
1 changed files with 2 additions and 2 deletions

View File

@ -325,7 +325,7 @@ class BranchChange(RefChange):
email_out = start_email()
if self.short_refname == 'master':
if self.short_refname in ('master', 'main'):
branch = ""
else:
branch = "/" + self.short_refname
@ -399,7 +399,7 @@ class BranchUpdate(BranchChange):
# In the non-fast-forward-case, the branch name is in the subject
return None
else:
if self.short_refname == 'master':
if self.short_refname in ('master', 'main'):
# Not saying 'master' all over the place reduces clutter
return None
else: