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/remote.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib/git/remote.py') diff --git a/lib/git/remote.py b/lib/git/remote.py index 5991a020..94bd285b 100644 --- a/lib/git/remote.py +++ b/lib/git/remote.py @@ -21,7 +21,9 @@ from refs import ( TagReference ) -from gitdb.util import join +from gitdb.util import ( + join, + ) import re __all__ = ('RemoteProgress', 'PushInfo', 'FetchInfo', 'Remote') @@ -256,7 +258,8 @@ class PushInfo(object): if control_character == " ": split_token = ".." old_sha, new_sha = summary.split(' ')[0].split(split_token) - old_commit = Commit(remote.repo, old_sha) + # have to use constructor here as the sha usually is abbreviated + old_commit = remote.repo.commit(old_sha) # END message handling return PushInfo(flags, from_ref, to_ref_string, remote, old_commit, summary) -- cgit v1.2.1