Use git tag in latesttags

This commit is contained in:
Jochen Sprickerhof 2021-06-14 18:56:59 +00:00
parent 89762f4d48
commit 2de3431296
2 changed files with 15 additions and 9 deletions

View file

@ -1171,18 +1171,11 @@ class vcs_git(vcs):
p = FDroidPopen(['git', 'tag'], cwd=self.local, output=False)
return p.output.splitlines()
tag_format = re.compile(r'tag: ([^),]*)')
def latesttags(self):
self.checkrepo()
p = FDroidPopen(['git', 'log', '--tags',
'--simplify-by-decoration', '--pretty=format:%d'],
p = FDroidPopen(['git', 'tag', '--sort=-authordate'],
cwd=self.local, output=False)
tags = []
for line in p.output.splitlines():
for tag in self.tag_format.findall(line):
tags.append(tag)
return tags
return p.output.splitlines()
class vcs_gitsvn(vcs):