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

With git, fetch tags, they might not be on the current (or any) branch

This commit is contained in:
Ciaran Gultnieks 2011-12-08 14:44:48 +00:00
parent b20a730d40
commit 03a4e42be5

View File

@ -106,6 +106,11 @@ class vcs_git(vcs):
cwd=self.local) != 0: cwd=self.local) != 0:
print "Git pull failed" print "Git pull failed"
sys.exit(1) 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): def initsubmodules(self):
if subprocess.call(['git', 'submodule', 'init'], if subprocess.call(['git', 'submodule', 'init'],