From 6e07171bae7bac25c61f59f1d0b37662369bfb3b Mon Sep 17 00:00:00 2001 From: Lin Yang Date: Fri, 7 Sep 2012 15:26:04 +0800 Subject: [PATCH] Support abstract message from GPG signed tag --- common/git.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/common/git.py b/common/git.py index ec67182..5692bc9 100644 --- a/common/git.py +++ b/common/git.py @@ -263,7 +263,7 @@ class Git: if not line: continue if msgstub: - if line.startswith('###'): + if line.startswith('###') or line.startswith('-----BEGIN PGP SIGNATURE-----'): tag['message'] = msg[:-1] break else: @@ -274,8 +274,7 @@ class Git: tag['email'] = line[line.index(' <')+2:line.index('>')] msgstub = True - ret, commitid = self._exec_git('log', ["-1 --format=%H", tag_name]) - tag['commitid'] = commitid + tag['commitid'] = self.rev_parse(tag_name) return tag -- 2.7.4