1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-09 00:40:11 +01:00

Fetch tags and commits separately for git, or it doesn't work properly

This commit is contained in:
Ciaran Gultnieks 2012-01-25 20:21:58 +00:00
parent 904b7835d4
commit 5aa958313c

View File

@ -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")