summaryrefslogtreecommitdiff
path: root/lib/git/odb/db.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2010-06-12 12:41:20 +0200
committerSebastian Thiel <byronimo@gmail.com>2010-06-12 12:41:20 +0200
commitf91495e271597034226f1b9651345091083172c4 (patch)
treee0e2aa63b7dc649083858366eaedb6ac4cc5739b /lib/git/odb/db.py
parent7c1169f6ea406fec1e26e99821e18e66437e65eb (diff)
parent7a0b79ee574999ecbc76696506352e4a5a0d7159 (diff)
downloadgitpython-f91495e271597034226f1b9651345091083172c4.tar.gz
Merge branch 'async'
Diffstat (limited to 'lib/git/odb/db.py')
-rw-r--r--lib/git/odb/db.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/git/odb/db.py b/lib/git/odb/db.py
index d970b0bf..5d3cc6a3 100644
--- a/lib/git/odb/db.py
+++ b/lib/git/odb/db.py
@@ -142,11 +142,10 @@ class FileDBBase(object):
"""Initialize this instance to look for its files at the given root path
All subsequent operations will be relative to this path
:raise InvalidDBRoot:
- :note: The base will perform basic checking for accessability, but the subclass
- is required to verify that the root_path contains the database structure it needs"""
+ :note: The base will not perform any accessablity checking as the base
+ might not yet be accessible, but become accessible before the first
+ access."""
super(FileDBBase, self).__init__()
- if not os.path.isdir(root_path):
- raise InvalidDBRoot(root_path)
self._root_path = root_path
@@ -333,10 +332,10 @@ class GitObjectDB(LooseObjectDB):
def info(self, sha):
t = self._git.get_object_header(sha)
- return OInfo(t[0], t[1], t[2])
+ return OInfo(*t)
def stream(self, sha):
"""For now, all lookup is done by git itself"""
t = self._git.stream_object_data(sha)
- return OStream(t[0], t[1], t[2], t[3])
+ return OStream(*t)