From 1fe889ea0cb2547584075dc1eb77f52c54b9a8c4 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Mon, 28 Jun 2010 19:15:42 +0200 Subject: All tests adjusted to work with the changed internal sha representation --- lib/git/repo.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/git/repo.py') diff --git a/lib/git/repo.py b/lib/git/repo.py index 2cae0508..9b25653f 100644 --- a/lib/git/repo.py +++ b/lib/git/repo.py @@ -21,7 +21,8 @@ from db import ( from gitdb.util import ( join, isdir, - isfile + isfile, + hex_to_bin ) import os import sys @@ -576,7 +577,7 @@ class Repo(object): sha = info['id'] c = commits.get(sha) if c is None: - c = Commit( self, sha, + c = Commit( self, hex_to_bin(sha), author=Actor._from_string(info['author'] + ' ' + info['author_email']), authored_date=info['author_date'], committer=Actor._from_string(info['committer'] + ' ' + info['committer_email']), -- cgit v1.2.1