Skip to content

Commit

Permalink
fix check for _api_class, and version bump
Browse files Browse the repository at this point in the history
check needs to be on remote not self for cache

this needs a test since all tests are green but this was broken
  • Loading branch information
tgbugs committed Jul 14, 2020
1 parent b87f236 commit a42a1ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion augpathlib/__init__.py
Expand Up @@ -51,4 +51,4 @@ class RepoPath(RepoHelper):
'RemotePath',
]

__version__ = '0.0.19'
__version__ = '0.0.20'
2 changes: 1 addition & 1 deletion augpathlib/caches.py
Expand Up @@ -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
Expand Down

0 comments on commit a42a1ff

Please sign in to comment.