mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 07:20:29 +03:00
Also reset --hard and clean -dffx the git submodules
This commit is contained in:
parent
e53f006d08
commit
0c8283bc1a
1 changed files with 8 additions and 0 deletions
|
|
@ -211,6 +211,14 @@ class vcs_git(vcs):
|
||||||
if subprocess.call(['git', 'submodule', 'update'],
|
if subprocess.call(['git', 'submodule', 'update'],
|
||||||
cwd=self.local) != 0:
|
cwd=self.local) != 0:
|
||||||
raise VCSException("Git submodule update failed")
|
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):
|
def gettags(self):
|
||||||
self.checkrepo()
|
self.checkrepo()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue