diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2009-11-23 18:49:31 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2009-11-23 18:49:31 +0100 |
commit | 202216e2cdb50d0e704682c5f732dfb7c221fbbc (patch) | |
tree | 525311b1ddd95092da9ad1782de44187a1edb84d /test/git/test_remote.py | |
parent | 1dd7d6468a54be56039b2e3a50bcf171d8e854ff (diff) | |
download | gitpython-202216e2cdb50d0e704682c5f732dfb7c221fbbc.tar.gz |
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
Diffstat (limited to 'test/git/test_remote.py')
-rw-r--r-- | test/git/test_remote.py | 6 |
1 files changed, 3 insertions, 3 deletions
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 |