SWU: git reset => git reset --hard for forced version
This commit is contained in:
1 parent
d9a4ff47b6
commit
882cf3a142
1 file changed
+1
-1
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user