Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/libgit2/pygit2
/ set_bad_upstream
Function
set_bad_upstream
test/test_branch_empty.py:69–70 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
67
assert master.upstream.branch_name ==
'origin/master'
68
69
def
set_bad_upstream():
70
master.upstream = 2.5
71
72
with
pytest.raises(TypeError):
73
set_bad_upstream()
Callers
2
test_branches_upstream
Function · 0.85
test_branch_upstream
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…