From 572ace094208c28ab1a8641aedb038456d13f70b Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Tue, 3 Nov 2009 17:44:13 +0100 Subject: 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 --- test/git/test_refs.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'test/git/test_refs.py') 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 -- cgit v1.2.1