def test_full_ref_branch(project_repo): ref = git.full_ref(project_repo, 'master') print(project_repo.refs.keys()) assert ref == 'refs/heads/master'
def test_full_ref_tag(project_repo): ref = git.full_ref(project_repo, 'test-tag') assert ref == 'refs/tags/test-tag'
def test_full_ref_commit(project_repo): head = project_repo.head().decode(encoding='ascii') ref = git.full_ref(project_repo, head) assert ref == head