From cf2b7c097c11d894812b24072ad50fdcadb0f5ac Mon Sep 17 00:00:00 2001 From: Dmitry Petrov Date: Mon, 10 Apr 2017 09:55:07 -0700 Subject: [PATCH] Windows symlink: full path get_cwd() for state file --- dvc/state_file.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dvc/state_file.py b/dvc/state_file.py index 6c64160a7..a04d0bb80 100644 --- a/dvc/state_file.py +++ b/dvc/state_file.py @@ -4,6 +4,7 @@ import json import time from dvc.exceptions import DvcException +from dvc.git_wrapper import GitWrapperI class StateFileError(DvcException): @@ -126,7 +127,7 @@ class StateFile(object): return result def get_dvc_path(self): - pwd = os.path.realpath(os.curdir) + pwd = GitWrapperI.get_cwd() if not pwd.startswith(self.git.git_dir_abs): raise StateFileError('the file cannot be created outside of a git repository')