From: Ciaran Gultnieks Date: Wed, 25 Jan 2012 20:21:58 +0000 (+0000) Subject: Fetch tags and commits separately for git, or it doesn't work properly X-Git-Tag: 0.1~1050 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=5aa958313ccd0378fe936f0b39d0847ce13eb2e0;p=fdroidserver.git Fetch tags and commits separately for git, or it doesn't work properly --- 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")