mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 07:18:27 +01:00
type and doc fix
This commit is contained in:
@@ -73,7 +73,7 @@ def _external_repo(url=None, rev=None, cache_dir=None):
|
||||
# add default remote pointing to the original repo's cache location
|
||||
if os.path.isdir(url):
|
||||
rconfig = RemoteConfig(repo.config)
|
||||
if not rconfig.remote_remote_set():
|
||||
if not rconfig.default_remote_set():
|
||||
original_repo = Repo(url)
|
||||
try:
|
||||
rconfig.add(
|
||||
|
||||
@@ -156,14 +156,14 @@ class RemoteConfig(object):
|
||||
Config.SECTION_CORE, Config.SECTION_CORE_REMOTE, level=level
|
||||
)
|
||||
|
||||
def remote_remote_set(self):
|
||||
def default_remote_set(self):
|
||||
"""
|
||||
Checks if default remote config is present.
|
||||
Args:
|
||||
rconfig: a remote config
|
||||
|
||||
Returns:
|
||||
True if the remote config exists, else False
|
||||
True if the remote config is set, else False
|
||||
"""
|
||||
try:
|
||||
self.get_default()
|
||||
|
||||
Reference in New Issue
Block a user