mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 07:20:29 +03:00
Run git submodule sync before git submodule update
Fixes changes in submodule urls
This commit is contained in:
parent
965c767d8b
commit
13af519069
1 changed files with 3 additions and 0 deletions
|
|
@ -428,6 +428,9 @@ class vcs_git(vcs):
|
|||
p = SilentPopen(['git', 'submodule', 'foreach', '--recursive'] + cmd, cwd=self.local)
|
||||
if p.returncode != 0:
|
||||
raise VCSException("Git submodule reset failed")
|
||||
p = FDroidPopen(['git', 'submodule', 'sync'], cwd=self.local)
|
||||
if p.returncode != 0:
|
||||
raise VCSException("Git submodule sync failed")
|
||||
p = FDroidPopen(['git', 'submodule', 'update', '--init', '--force', '--recursive'], cwd=self.local)
|
||||
if p.returncode != 0:
|
||||
raise VCSException("Git submodule update failed")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue