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

login
register
mail settings
Submitter phabricator
Date March 5, 2020, 8:17 a.m.
Message ID <c59fee31f22a2ba24781e7d88d525d19@localhost.localdomain>
Download mbox | patch
Permalink /patch/45489/
State Not Applicable
Headers show

Comments

phabricator - March 5, 2020, 8:17 a.m.
pulkit edited the summary of this revision.
pulkit retitled this revision from "hgit: make sure repository has store attribute before checking for type" to "hgit: make sure repository is local before checking for store type".
pulkit updated this revision to Diff 20493.

REPOSITORY
  rHG Mercurial

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

BRANCH
  default

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
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
@@ -220,7 +220,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