From 202216e2cdb50d0e704682c5f732dfb7c221fbbc Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Mon, 23 Nov 2009 18:49:31 +0100 Subject: remote.fetch: fetchInfo would not provide old_commit information in case of fast_forwards although. Renamed cumbersome 'commit_before_forced_updated' attribute to 'old_commit' to be en par with PushInfo --- test/git/test_remote.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/git/test_remote.py b/test/git/test_remote.py index 700798dd..f1086875 100644 --- a/test/git/test_remote.py +++ b/test/git/test_remote.py @@ -74,10 +74,10 @@ class TestRemote(TestBase): assert info.flags != 0 # END reference type flags handling assert isinstance(info.ref, (SymbolicReference, Reference)) - if info.flags & info.FORCED_UPDATE: - assert isinstance(info.commit_before_forced_update, Commit) + if info.flags & (info.FORCED_UPDATE|info.FAST_FORWARD): + assert isinstance(info.old_commit, Commit) else: - assert info.commit_before_forced_update is None + assert info.old_commit is None # END forced update checking # END for each info -- cgit v1.2.3