diff hgext/git/__init__.py @ 44542:a2b49606a837

hgit: make sure repository is local before checking for store type httppeer (and maybe others too) does not have a store attribute. This was causing `hg pull` being broken on a hg repository when the extension is enabled. localpeer.local() does returns a non-None value but I am not sure if it matters. Differential Revision: https://phab.mercurial-scm.org/D8217
author Pulkit Goyal <7895pulkit@gmail.com>
date Wed, 04 Mar 2020 22:13:15 +0530
parents 02c47b74366c
children bb3e05ca21ca
line wrap: on
line diff
--- a/hgext/git/__init__.py	Fri Mar 06 18:08:23 2020 +0100
+++ b/hgext/git/__init__.py	Wed Mar 04 22:13:15 2020 +0530
@@ -230,7 +230,7 @@
 
 
 def reposetup(ui, repo):
-    if isinstance(repo.store, gitstore):
+    if repo.local() and isinstance(repo.store, gitstore):
         orig = repo.__class__
         repo.store._progress_factory = repo.ui.makeprogress