mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-05-18 13:39:55 -04:00
Checkout with --force on git
This commit is contained in:
@@ -197,7 +197,7 @@ class vcs_git(vcs):
|
||||
self.refreshed = True
|
||||
# Check out the appropriate revision...
|
||||
rev = str(rev if rev else 'origin/master')
|
||||
if subprocess.call(['git', 'checkout', rev], cwd=self.local) != 0:
|
||||
if subprocess.call(['git', 'checkout', '-f', rev], cwd=self.local) != 0:
|
||||
raise VCSException("Git checkout failed")
|
||||
# Get rid of any uncontrolled files left behind...
|
||||
if subprocess.call(['git', 'clean', '-dffx'], cwd=self.local) != 0:
|
||||
|
||||
Reference in New Issue
Block a user