From da2bb11580077b866bb624a335765aed78f75fdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Wed, 22 Jan 2014 10:38:34 +0100 Subject: [PATCH] When fetching tags in git, get rid of removed ones --- fdroidserver/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 0a1b295e..ac4ff8b9 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -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