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

Method delete

pygit2/remotes.py:501–507  ·  view source on GitHub ↗

Remove a remote from the configuration All remote-tracking branches and configuration settings for the remote will be removed.

(self, name: str)

Source from the content-addressed store, hash-verified

499 return strarray_to_strings(problems)
500
501 def delete(self, name: str) -> None:
502 """Remove a remote from the configuration
503
504 All remote-tracking branches and configuration settings for the remote will be removed.
505 """
506 err = C.git_remote_delete(self._repo._repo, to_bytes(name))
507 check_error(err)
508
509 def set_url(self, name: str, url: str) -> None:
510 """Set the URL for a remote"""

Callers

nothing calls this directly

Calls 2

to_bytesFunction · 0.85
check_errorFunction · 0.85

Tested by

no test coverage detected