mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-14 06:52:39 +03:00
Fetch tags and commits separately for git, or it doesn't work properly
This commit is contained in:
parent
904b7835d4
commit
5aa958313c
1 changed files with 3 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue