mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 07:18:27 +01:00
Merge pull request #574 from efiop/master
scm: dynamically import gitpython
This commit is contained in:
+1
-1
@@ -1,5 +1,4 @@
|
||||
import os
|
||||
import git
|
||||
|
||||
from dvc.exceptions import DvcException
|
||||
|
||||
@@ -61,6 +60,7 @@ class Git(Base):
|
||||
def __init__(self, root_dir=os.curdir):
|
||||
super(Git, self).__init__(root_dir)
|
||||
|
||||
import git
|
||||
try:
|
||||
self.repo = git.Repo(root_dir)
|
||||
except InvalidGitRepositoryError:
|
||||
|
||||
Reference in New Issue
Block a user