mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-01-25 15:58:03 -05:00
Easier multiline strings
This commit is contained in:
@@ -483,9 +483,9 @@ class vcs_git(vcs):
|
||||
|
||||
def latesttags(self, alltags, number):
|
||||
self.checkrepo()
|
||||
p = SilentPopen(['echo "' + '\n'.join(alltags) + '" | \
|
||||
xargs -I@ git log --format=format:"%at @%n" -1 @ | \
|
||||
sort -n | awk \'{print $2}\''],
|
||||
p = SilentPopen(['echo "' + '\n'.join(alltags) + '" | '
|
||||
+ 'xargs -I@ git log --format=format:"%at @%n" -1 @ | '
|
||||
+ 'sort -n | awk \'{print $2}\''],
|
||||
cwd=self.local, shell=True)
|
||||
return p.stdout.splitlines()[-number:]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user