chiark / gitweb /
With git, fetch tags, they might not be on the current (or any) branch
authorCiaran Gultnieks <ciaran@ciarang.com>
Thu, 8 Dec 2011 14:44:48 +0000 (14:44 +0000)
committerCiaran Gultnieks <ciaran@ciarang.com>
Thu, 8 Dec 2011 14:44:48 +0000 (14:44 +0000)
common.py

index 46e05114f700e349f248e2f8ca256c3f0ee594c3..148a383b4e26b4ad68194cb12c7716e422918904 100644 (file)
--- 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'],