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

Method __init__

pygit2/remotes.py:147–151  ·  view source on GitHub ↗

The constructor is for internal use only.

(self, repo: BaseRepository, ptr: 'GitRemoteC')

Source from the content-addressed store, hash-verified

145
146class Remote:
147 def __init__(self, repo: BaseRepository, ptr: 'GitRemoteC') -> None:
148 """The constructor is for internal use only."""
149 self._repo = repo
150 self._remote = ptr
151 self._stored_exception = None
152
153 def __del__(self) -> None:
154 C.git_remote_free(self._remote)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected