summaryrefslogtreecommitdiff
path: root/git/test
diff options
context:
space:
mode:
Diffstat (limited to 'git/test')
-rw-r--r--git/test/test_refs.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/git/test/test_refs.py b/git/test/test_refs.py
index 879b8caa..9816fb50 100644
--- a/git/test/test_refs.py
+++ b/git/test/test_refs.py
@@ -175,6 +175,12 @@ class TestRefs(TestBase):
def test_orig_head(self):
assert type(self.rorepo.head.orig_head()) == SymbolicReference
+
+ @with_rw_repo('0.1.6')
+ def test_head_checkout_detached_head(self, rw_repo):
+ res = rw_repo.remotes.origin.refs.master.checkout()
+ assert isinstance(res, SymbolicReference)
+ assert res.name == 'HEAD'
@with_rw_repo('0.1.6')
def test_head_reset(self, rw_repo):