From: Ciaran Gultnieks Date: Thu, 8 Dec 2011 14:44:48 +0000 (+0000) Subject: With git, fetch tags, they might not be on the current (or any) branch X-Git-Tag: 0.1~1209 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=03a4e42be5fd5430741e16b36cb554edd32ed929;p=fdroidserver.git With git, fetch tags, they might not be on the current (or any) branch --- diff --git a/common.py b/common.py index 46e05114..148a383b 100644 --- a/common.py +++ b/common.py @@ -106,6 +106,11 @@ class vcs_git(vcs): cwd=self.local) != 0: print "Git pull failed" sys.exit(1) + # Might need tags that aren't on a branch. + if subprocess.call(['git', 'fetch', '--tags', 'origin'], + cwd=self.local) != 0: + print "Git fetch failed" + sys.exit(1) def initsubmodules(self): if subprocess.call(['git', 'submodule', 'init'],