Support abstract message from GPG signed tag
authorLin Yang <lin.a.yang@intel.com>
Fri, 7 Sep 2012 07:26:04 +0000 (15:26 +0800)
committerLin Yang <lin.a.yang@intel.com>
Fri, 7 Sep 2012 07:26:04 +0000 (15:26 +0800)
common/git.py

index ec67182..5692bc9 100644 (file)
@@ -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