diff --git a/dvc/repo/unprotect.py b/dvc/repo/unprotect.py index 3263abf33..a9b0a1a00 100644 --- a/dvc/repo/unprotect.py +++ b/dvc/repo/unprotect.py @@ -21,7 +21,7 @@ def _unprotect_file(path): # the temporary name, and then original file should be replaced by new. copyfile(path, tmp) remove(path) - move(tmp, path) + os.rename(tmp, path) else: logger.debug(