Patchwork D8217: hgit: make sure repository is local before checking for store type

login
register
mail settings
Submitter phabricator
Date March 11, 2020, 4:36 p.m.
Message ID <2b988ef0fcf9f98cbe8cae0f5aa8180c@localhost.localdomain>
Download mbox | patch
Permalink /patch/45741/
State Not Applicable
Headers show

Comments

phabricator - March 11, 2020, 4:36 p.m.
Closed by commit rHGa2b49606a837: hgit: make sure repository is local before checking for store type (authored by pulkit).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8217?vs=20493&id=20736

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8217/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D8217

AFFECTED FILES
  hgext/git/__init__.py

CHANGE DETAILS




To: pulkit, #hg-reviewers, durin42, mharbison72
Cc: durin42, mharbison72, mercurial-devel

Patch

diff --git a/hgext/git/__init__.py b/hgext/git/__init__.py
--- a/hgext/git/__init__.py
+++ b/hgext/git/__init__.py
@@ -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