diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2009-11-04 20:09:19 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2009-11-04 20:12:22 +0100 |
commit | ec1f9c9e9a6ce14ddc69b6be65188b3438f31f23 (patch) | |
tree | cea4ab324046c27c9a6e3570f11425053846af2b /test/git/test_refs.py | |
parent | d884adc80c80300b4cc05321494713904ef1df2d (diff) | |
download | gitpython-ec1f9c9e9a6ce14ddc69b6be65188b3438f31f23.tar.gz |
helpers: fixed and improved test repo decorators to use the new head.checkout functions for greater ease of use - they work exactly as expected now.
Fixed failing test in remote tests by actually removing the line
Diffstat (limited to 'test/git/test_refs.py')
-rw-r--r-- | test/git/test_refs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/git/test_refs.py b/test/git/test_refs.py index 32a6de1c..8fa30aa1 100644 --- a/test/git/test_refs.py +++ b/test/git/test_refs.py @@ -223,10 +223,10 @@ class TestRefs(TestBase): assert active_branch != rw_repo.active_branch assert new_head == rw_repo.active_branch - # checkout with force has we have a change + # checkout with force as we have a changed a file # clear file open(new_head.commit.tree.blobs[-1].abspath,'w').close() - assert len(new_head.commit.diff(None)) == 1 + assert len(new_head.commit.diff(None)) # create a new branch that is likely to touch the file we changed far_away_head = rw_repo.create_head("far_head",'HEAD~100') |