SWU: git reset => git reset --hard for forced version

This commit is contained in:
Gina Häußge 2016-08-25 16:49:18 +02:00
parent d9a4ff47b6
commit 882cf3a142

View file

@ -122,7 +122,7 @@ def update_source(git_executable, folder, target, force=False, branch=None):
print(stdout)
if force:
reset_command = ["reset"]
reset_command = ["reset", "--hard"]
reset_command += [target]
print(">>> Running: git %s" % " ".join(reset_command))