mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-16 16:02:33 +03:00
Run submodule reset and clean before update. Also do --recursive for these.
This commit is contained in:
parent
9fa73faf2e
commit
63a0e859ff
1 changed files with 6 additions and 6 deletions
|
@ -336,18 +336,18 @@ class vcs_git(vcs):
|
|||
|
||||
def initsubmodules(self):
|
||||
self.checkrepo()
|
||||
if subprocess.call(['git', 'submodule', 'update',
|
||||
'--init', '--recursive'],
|
||||
cwd=self.local) != 0:
|
||||
raise VCSException("Git submodule update failed")
|
||||
if subprocess.call(['git', 'submodule', 'foreach',
|
||||
if subprocess.call(['git', 'submodule', 'foreach', '--recursive',
|
||||
'git', 'reset', '--hard'],
|
||||
cwd=self.local) != 0:
|
||||
raise VCSException("Git submodule reset failed")
|
||||
if subprocess.call(['git', 'submodule', 'foreach',
|
||||
if subprocess.call(['git', 'submodule', 'foreach', '--recursive',
|
||||
'git', 'clean', '-dffx'],
|
||||
cwd=self.local) != 0:
|
||||
raise VCSException("Git submodule clean failed")
|
||||
if subprocess.call(['git', 'submodule', 'update',
|
||||
'--init', '--force', '--recursive'],
|
||||
cwd=self.local) != 0:
|
||||
raise VCSException("Git submodule update failed")
|
||||
|
||||
def gettags(self):
|
||||
self.checkrepo()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue