type and doc fix

This commit is contained in:
Mayur Kularni
2019-12-10 15:31:58 +05:30
parent a1ae3578c0
commit 40c392d312
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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(
+2 -2
View File
@@ -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()