From 7cd618ce5dc4c14020cb68c08b5136f528619707 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Tue, 19 Mar 2019 19:42:25 +0200 Subject: [PATCH] repo: unprotect: use os.rename() instead of move() Follow up for #1752 --- dvc/repo/unprotect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(