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')