mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-12-02 07:18:29 +01:00
Windows symlink: full path get_cwd() for state file
This commit is contained in:
+2
-1
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user