mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
scm: dynamically import gitpython
Fixes #573 Signed-off-by: Ruslan Kuprieiev <[email protected]>
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