summaryrefslogtreecommitdiff
path: root/git/repo/base.py
diff options
context:
space:
mode:
authorHung Nguyen Viet <hvn@familug.org>2015-06-01 11:02:41 +0700
committerHung Nguyen Viet <hvn@familug.org>2015-06-01 11:02:46 +0700
commitc1d5c614c38db015485190d65db05b0b75d171d4 (patch)
tree1e185a703d1d3675344c01d6a7669f43303b24cb /git/repo/base.py
parent14851034ab5204ddb7329eb34bb0964d3f206f2b (diff)
downloadgitpython-c1d5c614c38db015485190d65db05b0b75d171d4.tar.gz
support passing odbt for using with Repo
Diffstat (limited to 'git/repo/base.py')
-rw-r--r--git/repo/base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/git/repo/base.py b/git/repo/base.py
index e59cb0c7..45550826 100644
--- a/git/repo/base.py
+++ b/git/repo/base.py
@@ -737,7 +737,7 @@ class Repo(object):
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:
@@ -762,7 +762,7 @@ class Repo(object):
# 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):