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

Method set_url

pygit2/remotes.py:509–512  ·  view source on GitHub ↗

Set the URL for a remote

(self, name: str, url: str)

Source from the content-addressed store, hash-verified

507 check_error(err)
508
509 def set_url(self, name: str, url: str) -> None:
510 """Set the URL for a remote"""
511 err = C.git_remote_set_url(self._repo._repo, to_bytes(name), to_bytes(url))
512 check_error(err)
513
514 def set_push_url(self, name: str, url: str) -> None:
515 """Set the push-URL for a remote"""

Callers 1

test_remote_set_urlFunction · 0.80

Calls 2

to_bytesFunction · 0.85
check_errorFunction · 0.85

Tested by 1

test_remote_set_urlFunction · 0.64