We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93bbff7 commit 6caa06dCopy full SHA for 6caa06d
pygit2/remotes.py
@@ -62,7 +62,7 @@ class RemoteHead:
62
63
oid: Oid
64
65
- loid: Oid | None
+ loid: Oid
66
67
name: str | None
68
@@ -74,12 +74,8 @@ class RemoteHead:
74
75
def __init__(self, c_struct: Any) -> None:
76
self.local = bool(c_struct.local)
77
- if self.local:
78
- self.loid = Oid(raw=bytes(ffi.buffer(c_struct.loid.id)[:]))
79
- else:
80
- self.loid = None
81
-
82
self.oid = Oid(raw=bytes(ffi.buffer(c_struct.oid.id)[:]))
+ self.loid = Oid(raw=bytes(ffi.buffer(c_struct.loid.id)[:]))
83
self.name = maybe_string(c_struct.name)
84
self.symref_target = maybe_string(c_struct.symref_target)
85
0 commit comments