diff options
author | Matthieu Moy <Matthieu.Moy@imag.fr> | 2016-05-13 19:00:41 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-05-13 12:54:06 -0700 |
commit | 17130a704620c0e5455ef0f362f8d0f40758d1ea (patch) | |
tree | de04adb3891af33deae1f4dc4f13ce3cb9ddd69f /contrib/hooks/multimail/git_multimail.py | |
parent | 5fe494c54ae44ae01a8efa91d00ac9d4c1c475e9 (diff) |
git-multimail: update to release 1.3.1
The changes are described in CHANGES.
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/hooks/multimail/git_multimail.py')
-rwxr-xr-x | contrib/hooks/multimail/git_multimail.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/contrib/hooks/multimail/git_multimail.py b/contrib/hooks/multimail/git_multimail.py index f2c92aeed8..54ab4a4942 100755 --- a/contrib/hooks/multimail/git_multimail.py +++ b/contrib/hooks/multimail/git_multimail.py @@ -1,6 +1,6 @@ #! /usr/bin/env python -__version__ = '1.3.0' +__version__ = '1.3.1' # Copyright (c) 2015 Matthieu Moy and others # Copyright (c) 2012-2014 Michael Haggerty and others @@ -1704,6 +1704,14 @@ class BranchChange(ReferenceChange): self.header_template = COMBINED_HEADER_TEMPLATE self.intro_template = COMBINED_INTRO_TEMPLATE self.footer_template = COMBINED_FOOTER_TEMPLATE + + def revision_gen_link(base_url): + # revision is used only to generate the body, and + # _content_type is set while generating headers. Get it + # from the BranchChange object. + revision._content_type = self._content_type + return revision.generate_browse_link(base_url) + self.generate_browse_link = revision_gen_link for line in self.generate_email(push, body_filter, values): yield line |