mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-05 18:50:09 +02:00
Also reset --hard and clean -dffx the git submodules
This commit is contained in:
parent
e53f006d08
commit
0c8283bc1a
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user