mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
config: handle run outside of dvc repo
Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
@@ -382,6 +382,9 @@ class Config(object): # pylint: disable=too-many-instance-attributes
|
||||
cache[self.PRIVATE_CWD] = os.path.dirname(fname)
|
||||
|
||||
def _resolve_paths(self, config, fname):
|
||||
if fname is None:
|
||||
return
|
||||
|
||||
self._resolve_cache_path(config, fname)
|
||||
for section in config.values():
|
||||
if self.SECTION_REMOTE_URL not in section.keys():
|
||||
|
||||
Reference in New Issue
Block a user