mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 09:32:06 +00:00
Use checkout -f preventing some potential issues
This commit is contained in:
parent
59501150d0
commit
d100fac7ab
@ -335,7 +335,7 @@ class Release:
|
||||
yield
|
||||
except (Exception, KeyboardInterrupt):
|
||||
logging.warning("Rolling back checked out %s for %s", ref, orig_ref)
|
||||
self.run(f"git reset --hard; git checkout {orig_ref}")
|
||||
self.run(f"git reset --hard; git checkout -f {orig_ref}")
|
||||
raise
|
||||
else:
|
||||
if with_checkout_back and need_rollback:
|
||||
|
Loading…
Reference in New Issue
Block a user