MCPcopy Create free account
hub / github.com/libgit2/pygit2 / test_head

Function test_head

test/test_repository_bare.py:56–61  ·  view source on GitHub ↗
(barerepo: Repository)

Source from the content-addressed store, hash-verified

54
55
56def test_head(barerepo: Repository) -> None:
57 head = barerepo.head
58 assert HEAD_SHA == head.target
59 assert type(head) is pygit2.Reference
60 assert not barerepo.head_is_unborn
61 assert not barerepo.head_is_detached
62
63
64def test_set_head(barerepo: Repository) -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…