mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-19 21:30:10 +01:00
Merge branch 'git_prune' into 'master'
git prune branches in case of failure See merge request fdroid/fdroidserver!1026
This commit is contained in:
commit
e036f31613
@ -1167,6 +1167,9 @@ class vcs_git(vcs):
|
|||||||
p = self.git(['fetch', 'origin'], cwd=self.local)
|
p = self.git(['fetch', 'origin'], cwd=self.local)
|
||||||
if p.returncode != 0:
|
if p.returncode != 0:
|
||||||
raise VCSException(_("Git fetch failed"), p.output)
|
raise VCSException(_("Git fetch failed"), p.output)
|
||||||
|
p = self.git(['remote', 'prune', 'origin'], output=False, cwd=self.local)
|
||||||
|
if p.returncode != 0:
|
||||||
|
raise VCSException(_("Git prune failed"), p.output)
|
||||||
p = self.git(['fetch', '--prune', '--tags', '--force', 'origin'], output=False, cwd=self.local)
|
p = self.git(['fetch', '--prune', '--tags', '--force', 'origin'], output=False, cwd=self.local)
|
||||||
if p.returncode != 0:
|
if p.returncode != 0:
|
||||||
raise VCSException(_("Git fetch failed"), p.output)
|
raise VCSException(_("Git fetch failed"), p.output)
|
||||||
|
Loading…
Reference in New Issue
Block a user