From 03a4e42be5fd5430741e16b36cb554edd32ed929 Mon Sep 17 00:00:00 2001 From: Ciaran Gultnieks Date: Thu, 8 Dec 2011 14:44:48 +0000 Subject: [PATCH] With git, fetch tags, they might not be on the current (or any) branch --- common.py | 5 +++++ 1 file changed, 5 insertions(+) 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'], -- 2.30.2