From 47e3138ee978ce708a41f38a0d874376d7ae5c78 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Fri, 25 Jun 2010 23:58:24 +0200 Subject: 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 --- lib/git/db.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/git/db.py') 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) -- cgit v1.2.1