diff options
Diffstat (limited to 'lib/git/repo.py')
-rw-r--r-- | lib/git/repo.py | 5 |
1 files changed, 3 insertions, 2 deletions
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']), |