diff --git a/hgext/git/__init__.py b/hgext/git/__init__.py --- a/hgext/git/__init__.py +++ b/hgext/git/__init__.py @@ -19,6 +19,7 @@ localrepo, pycompat, store, + util, ) from . import ( @@ -222,7 +223,7 @@ def reposetup(ui, repo): - if isinstance(repo.store, gitstore): + if util.safehasattr(repo, 'store') and isinstance(repo.store, gitstore): orig = repo.__class__ repo.store._progress_factory = repo.ui.makeprogress