summaryrefslogtreecommitdiff
path: root/lib/git/db.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2010-07-09 12:18:38 +0200
committerSebastian Thiel <byronimo@gmail.com>2010-07-09 12:18:38 +0200
commit08457a7a6b6ad4f518fad0d5bca094a2b5b38fbe (patch)
treeff129ad199b7e069cb3cef0fcf34353717befa60 /lib/git/db.py
parent3288a244428751208394d8137437878277ceb71f (diff)
downloadgitpython-08457a7a6b6ad4f518fad0d5bca094a2b5b38fbe.tar.gz
Added python 2.4 support: Repo will now use the original GitCmdObjectDB in python 2.4, as the pure python implementation cannot work without memory maps
Diffstat (limited to 'lib/git/db.py')
-rw-r--r--lib/git/db.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/git/db.py b/lib/git/db.py
index 6339569f..b1c65377 100644
--- a/lib/git/db.py
+++ b/lib/git/db.py
@@ -34,13 +34,13 @@ class GitCmdObjectDB(LooseObjectDB):
self._git = git
def info(self, sha):
- t = self._git.get_object_header(bin_to_hex(sha))
- return OInfo(*t)
+ hexsha, typename, size = self._git.get_object_header(bin_to_hex(sha))
+ return OInfo(hex_to_bin(hexsha), typename, size)
def stream(self, sha):
"""For now, all lookup is done by git itself"""
- t = self._git.stream_object_data(bin_to_hex(sha))
- return OStream(*t)
+ hexsha, typename, size, stream = self._git.stream_object_data(bin_to_hex(sha))
+ return OStream(hex_to_bin(hexsha), typename, size, stream)
# { Interface