chiark / gitweb /
Fetch tags and commits separately for git, or it doesn't work properly
authorCiaran Gultnieks <ciaran@ciarang.com>
Wed, 25 Jan 2012 20:21:58 +0000 (20:21 +0000)
committerCiaran Gultnieks <ciaran@ciarang.com>
Wed, 25 Jan 2012 20:21:58 +0000 (20:21 +0000)
common.py

index d70ea6f9d4e5b69da10287a277739e9a1d8cb155..095e715ec741e3f45a1b2cdbcaa22b44d9094e80 100644 (file)
--- a/common.py
+++ b/common.py
@@ -99,6 +99,9 @@ class vcs_git(vcs):
                 raise VCSException("Git clean failed")
             if not self.refreshed:
                 # Get latest commits and tags from remote...
+                if subprocess.call(['git', 'fetch', 'origin'],
+                        cwd=self.local) != 0:
+                    raise VCSException("Git fetch failed")
                 if subprocess.call(['git', 'fetch', '--tags', 'origin'],
                         cwd=self.local) != 0:
                     raise VCSException("Git fetch failed")