Skip to content

Commit c1d5c61

Browse files
committed
support passing odbt for using with Repo
1 parent 1485103 commit c1d5c61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

git/repo/base.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ def blame(self, rev, file):
737737
return blames
738738

739739
@classmethod
740-
def init(cls, path=None, mkdir=True, **kwargs):
740+
def init(cls, path=None, mkdir=True, odbt=DefaultDBType, **kwargs):
741741
"""Initialize a git repository at the given path if specified
742742
743743
:param path:
@@ -762,7 +762,7 @@ def init(cls, path=None, mkdir=True, **kwargs):
762762
# git command automatically chdir into the directory
763763
git = Git(path)
764764
git.init(**kwargs)
765-
return cls(path)
765+
return cls(path, odbt=odbt)
766766

767767
@classmethod
768768
def _clone(cls, git, url, path, odb_default_type, progress, **kwargs):

0 commit comments

Comments
 (0)