diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-06-25 23:58:24 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-06-25 23:58:24 +0200 |
commit | 47e3138ee978ce708a41f38a0d874376d7ae5c78 (patch) | |
tree | 0880f5c8f2a375e718c69fcffd15e87b7f4aecae /lib/git/db.py | |
parent | 58fb1187b7b8f1e62d3930bdba9be5aba47a52c6 (diff) | |
download | gitpython-47e3138ee978ce708a41f38a0d874376d7ae5c78.tar.gz |
Adjusted all files to (hopefully) deal with the fact that all objects now use 20 byte sha's internally as it is closer to the GitDB implementation
Switched all remaining files back to tabs
Adjusted all remaining docstrings to suit the sphinx doc convention - its likely that there are many of docstring syntax errors though
Diffstat (limited to 'lib/git/db.py')
-rw-r--r-- | lib/git/db.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/git/db.py b/lib/git/db.py index b7cf0fc7..c36446d0 100644 --- a/lib/git/db.py +++ b/lib/git/db.py @@ -4,7 +4,7 @@ from gitdb.base import ( OStream ) -from gitdb.util import to_hex_sha +from gitdb.util import bin_to_hex from gitdb.db import GitDB from gitdb.db import LooseObjectDB @@ -27,11 +27,11 @@ class GitCmdObjectDB(LooseObjectDB): self._git = git def info(self, sha): - t = self._git.get_object_header(to_hex_sha(sha)) + t = self._git.get_object_header(bin_to_hex(sha)) return OInfo(*t) def stream(self, sha): """For now, all lookup is done by git itself""" - t = self._git.stream_object_data(to_hex_sha(sha)) + t = self._git.stream_object_data(bin_to_hex(sha)) return OStream(*t) |