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

add --force to git deinit

This commit is contained in:
linsui 2023-11-25 22:11:19 +08:00
parent 9b38690df6
commit e2e7782ef3

View File

@ -1344,7 +1344,7 @@ class vcs_git(vcs):
def deinitsubmodules(self):
self.checkrepo()
p = FDroidPopen(['git', 'submodule', 'deinit', '--all'], cwd=self.local, output=False)
p = FDroidPopen(['git', 'submodule', 'deinit', '--all', '--force'], cwd=self.local, output=False)
if p.returncode != 0:
raise VCSException(_("Git submodule deinit failed"), p.output)