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