Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
support passing odbt for using with Repo
  • Loading branch information
hvnsweeting committed Jun 1, 2015
commit c1d5c614c38db015485190d65db05b0b75d171d4
4 changes: 2 additions & 2 deletions git/repo/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ def blame(self, rev, file):
return blames

@classmethod
def init(cls, path=None, mkdir=True, **kwargs):
def init(cls, path=None, mkdir=True, odbt=DefaultDBType, **kwargs):
"""Initialize a git repository at the given path if specified

:param path:
Expand All @@ -762,7 +762,7 @@ def init(cls, path=None, mkdir=True, **kwargs):
# git command automatically chdir into the directory
git = Git(path)
git.init(**kwargs)
return cls(path)
return cls(path, odbt=odbt)

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