Skip to content

Commit cd8d292

Browse files
committedOct 23, 2016
fix(ext): stop importing git-submodules for gitdb & smmap
Stop importing on runtime submodules of this project: gitdb, smmap. This overrides any other method of setting `SYSPATH`, eg: - pip install -e ./gitdb.git - pip install -e . - pip install git+https://... - dependent projects for IDes(LiClipse & PyCharm). - Manual maintain path.
1 parent 5149c80 commit cd8d292

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed
 

Diff for: ‎git/__init__.py

-18
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,6 @@
1515
__version__ = 'git'
1616

1717

18-
#{ Initialization
19-
def _init_externals():
20-
"""Initialize external projects by putting them into the path"""
21-
if __version__ == 'git':
22-
sys.path.insert(0, osp.join(osp.dirname(__file__), 'ext', 'gitdb'))
23-
24-
try:
25-
import gitdb
26-
except ImportError:
27-
raise ImportError("'gitdb' could not be found in your PYTHONPATH")
28-
# END verify import
29-
30-
#} END initialization
31-
32-
#################
33-
_init_externals()
34-
#################
35-
3618
#{ Imports
3719

3820
from git.config import GitConfigParser # @NoMove @IgnorePep8

0 commit comments

Comments
 (0)