summaryrefslogtreecommitdiff
path: root/lib/git/repo.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2010-06-23 15:50:14 +0200
committerSebastian Thiel <byronimo@gmail.com>2010-06-23 15:50:14 +0200
commit57050184f3d962bf91511271af59ee20f3686c3f (patch)
tree67c56788c74b87e8720562556168f57b439a6ab1 /lib/git/repo.py
parent778234d544b3f58dd415aaf10679d15b01a5281f (diff)
parent1e2265a23ecec4e4d9ad60d788462e7f124f1bb7 (diff)
downloadgitpython-57050184f3d962bf91511271af59ee20f3686c3f.tar.gz
Merge branch 'fromtree'
Diffstat (limited to 'lib/git/repo.py')
-rw-r--r--lib/git/repo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/git/repo.py b/lib/git/repo.py
index 74525403..79275106 100644
--- a/lib/git/repo.py
+++ b/lib/git/repo.py
@@ -71,7 +71,7 @@ class Repo(object):
# represents the configuration level of a configuration file
config_level = ("system", "global", "repository")
- def __init__(self, path=None, odbt = GitCmdObjectDB):
+ def __init__(self, path=None, odbt = GitDB):
""" Create a new Repo instance
:param path: is the path to either the root git directory or the bare git repo::
@@ -742,7 +742,7 @@ class Repo(object):
# we at least give a proper error instead of letting git fail
prev_cwd = None
prev_path = None
- odbt = kwargs.pop('odbt', GitCmdObjectDB)
+ odbt = kwargs.pop('odbt', type(self.odb))
if os.name == 'nt':
if '~' in path:
raise OSError("Git cannot handle the ~ character in path %r correctly" % path)