1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 14:30:11 +01:00

When fetching tags in git, get rid of removed ones

This commit is contained in:
Daniel Martí 2014-01-22 10:38:34 +01:00
parent 41c522319b
commit da2bb11580

View File

@ -346,7 +346,7 @@ class vcs_git(vcs):
if subprocess.call(['git', 'fetch', 'origin'],
cwd=self.local) != 0:
raise VCSException("Git fetch failed")
if subprocess.call(['git', 'fetch', '--tags', 'origin'],
if subprocess.call(['git', 'fetch', '--prune', '--tags', 'origin'],
cwd=self.local) != 0:
raise VCSException("Git fetch failed")
self.refreshed = True