mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-03-30 04:44:10 -04:00
Also reset --hard and clean -dffx the git submodules
This commit is contained in:
@@ -211,6 +211,14 @@ class vcs_git(vcs):
|
||||
if subprocess.call(['git', 'submodule', 'update'],
|
||||
cwd=self.local) != 0:
|
||||
raise VCSException("Git submodule update failed")
|
||||
if subprocess.call(['git', 'submodule', 'foreach',
|
||||
'git', 'reset', '--hard'],
|
||||
cwd=self.local) != 0:
|
||||
raise VCSException("Git submodule reset failed")
|
||||
if subprocess.call(['git', 'submodule', 'foreach',
|
||||
'git', 'clean', '-dffx'],
|
||||
cwd=self.local) != 0:
|
||||
raise VCSException("Git submodule clean failed")
|
||||
|
||||
def gettags(self):
|
||||
self.checkrepo()
|
||||
|
||||
Reference in New Issue
Block a user