mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
Use git tag in latesttags
This commit is contained in:
parent
89762f4d48
commit
2de3431296
2 changed files with 15 additions and 9 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue