Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Show branch/branches depending on if one or more branches were affected.

  • Loading branch information...
commit 12fdaabcc8eeda689df67e690da0c4c164fc5fb5 1 parent 2683ca7
@mhagander authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 commitmsg.py
View
8 commitmsg.py
@@ -173,8 +173,12 @@ def parse_commit_log(lines):
mail.append("-----------")
mail.extend(commitmsg)
mail.append("")
- mail.append("Branches")
- mail.append("--------")
+ if len(branches) > 1:
+ mail.append("Branches")
+ mail.append("--------")
+ else:
+ mail.append("Branch")
+ mail.append("------")
mail.append("\n".join([branch.strip(" *\r\n") for branch in branches]))
mail.append("")
mail.append("Modified Files")
Please sign in to comment.
Something went wrong with that request. Please try again.