Skip to content
This repository was archived by the owner on Oct 15, 2020. It is now read-only.

Commit c93bdcc

Browse files
committed
Fix the "force_checkout" option
1 parent c741df8 commit c93bdcc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

files/build_deploy.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,8 @@ def notify_error(stage, error):
185185

186186
os.chdir(checkout_dir)
187187
if config.get('force_checkout', False):
188-
subprocess.call(['git', 'checkout', '-f'])
188+
subprocess.call(['git', 'fetch'])
189+
subprocess.call(['git', 'checkout', '-f', 'origin/master'])
189190
else:
190191
subprocess.call(['git', 'pull', '--rebase'])
191192

0 commit comments

Comments
 (0)