mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-16 16:02:33 +03:00
Do submodules recursively, do init and update at the same time
This commit is contained in:
parent
f054cf4973
commit
c06fafdb6f
2 changed files with 6 additions and 6 deletions
|
@ -336,10 +336,8 @@ class vcs_git(vcs):
|
|||
|
||||
def initsubmodules(self):
|
||||
self.checkrepo()
|
||||
if subprocess.call(['git', 'submodule', 'init'],
|
||||
cwd=self.local) != 0:
|
||||
raise VCSException("Git submodule init failed")
|
||||
if subprocess.call(['git', 'submodule', 'update'],
|
||||
if subprocess.call(['git', 'submodule', 'update',
|
||||
'--init', '--recursive'],
|
||||
cwd=self.local) != 0:
|
||||
raise VCSException("Git submodule update failed")
|
||||
if subprocess.call(['git', 'submodule', 'foreach',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue