hgext/git/gitlog.py
changeset 44484 ec54b3d2af0b
parent 44481 8b5f5d8ad783
child 44844 8bfc6cc8e480
--- a/hgext/git/gitlog.py	Mon Mar 09 12:53:21 2020 -0700
+++ b/hgext/git/gitlog.py	Mon Mar 09 11:18:33 2020 -0700
@@ -1,7 +1,5 @@
 from __future__ import absolute_import
 
-import pygit2
-
 from mercurial.i18n import _
 
 from mercurial import (
@@ -25,6 +23,8 @@
     manifest as gitmanifest,
 )
 
+pygit2 = gitutil.get_pygit2()
+
 
 class baselog(object):  # revlog.revlog):
     """Common implementations between changelog and manifestlog."""