diff --git a/augpathlib/__init__.py b/augpathlib/__init__.py index 3bc32d6..a519141 100644 --- a/augpathlib/__init__.py +++ b/augpathlib/__init__.py @@ -51,4 +51,4 @@ class RepoPath(RepoHelper): 'RemotePath', ] -__version__ = '0.0.19' +__version__ = '0.0.20' diff --git a/augpathlib/caches.py b/augpathlib/caches.py index d6f87b3..b00f5e9 100644 --- a/augpathlib/caches.py +++ b/augpathlib/caches.py @@ -550,7 +550,7 @@ def remote(self): self._remote_class = self._remote_class_factory(anchor, self.local_class) - if (hasattr(self, '_api_class') and + if (hasattr(self._remote_class, '_api_class') and not hasattr(self._remote_class, '_api')): # FIXME SIGH this should be one shot not a hasattr check # every first time we have to get the remote for a cache