diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2009-11-03 17:44:13 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2009-11-03 17:44:13 +0100 |
commit | 572ace094208c28ab1a8641aedb038456d13f70b (patch) | |
tree | 9bb6197273dc9976bce5bd789a657f408fc1b77e /test/git/test_refs.py | |
parent | 0c4269a21b9edf8477f2fee139d5c1b260ebc4f8 (diff) | |
download | gitpython-572ace094208c28ab1a8641aedb038456d13f70b.tar.gz |
Now using git-update-ref and git-symbolic-ref to update references with reflog support. This should be manually implemented though for more performance, what it does is relatively easy
Diffstat (limited to 'test/git/test_refs.py')
-rw-r--r-- | test/git/test_refs.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/git/test_refs.py b/test/git/test_refs.py index 0a70af1f..f7f4f71a 100644 --- a/test/git/test_refs.py +++ b/test/git/test_refs.py @@ -200,11 +200,9 @@ class TestRefs(TestBase): # setting a non-commit as commit fails, but succeeds as object head_tree = head.commit.tree - self.failUnlessRaises(TypeError, setattr, head, 'commit', head_tree) + self.failUnlessRaises(GitCommandError, setattr, head, 'commit', head_tree) assert head.commit == old_commit # and the ref did not change - head.object = head_tree - assert head.object == head_tree - self.failUnlessRaises(TypeError, getattr, head, 'commit') # object is a tree, not a commit + self.failUnlessRaises(GitCommandError, setattr, head, 'object', head_tree) # set the commit directly using the head. This would never detach the head assert not cur_head.is_detached |