From 5aa958313ccd0378fe936f0b39d0847ce13eb2e0 Mon Sep 17 00:00:00 2001 From: Ciaran Gultnieks Date: Wed, 25 Jan 2012 20:21:58 +0000 Subject: [PATCH] Fetch tags and commits separately for git, or it doesn't work properly --- common.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common.py b/common.py index d70ea6f9..095e715e 100644 --- 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")