mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-16 16:02:33 +03:00
Easier multiline strings
This commit is contained in:
parent
4e153cc60d
commit
4ad7e8be06
1 changed files with 3 additions and 3 deletions
|
@ -483,9 +483,9 @@ class vcs_git(vcs):
|
||||||
|
|
||||||
def latesttags(self, alltags, number):
|
def latesttags(self, alltags, number):
|
||||||
self.checkrepo()
|
self.checkrepo()
|
||||||
p = SilentPopen(['echo "' + '\n'.join(alltags) + '" | \
|
p = SilentPopen(['echo "' + '\n'.join(alltags) + '" | '
|
||||||
xargs -I@ git log --format=format:"%at @%n" -1 @ | \
|
+ 'xargs -I@ git log --format=format:"%at @%n" -1 @ | '
|
||||||
sort -n | awk \'{print $2}\''],
|
+ 'sort -n | awk \'{print $2}\''],
|
||||||
cwd=self.local, shell=True)
|
cwd=self.local, shell=True)
|
||||||
return p.stdout.splitlines()[-number:]
|
return p.stdout.splitlines()[-number:]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue