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

Method set_push_url

pygit2/remotes.py:514–517  ·  view source on GitHub ↗

Set the push-URL for a remote

(self, name: str, url: str)

Source from the content-addressed store, hash-verified

512 check_error(err)
513
514 def set_push_url(self, name: str, url: str) -> None:
515 """Set the push-URL for a remote"""
516 err = C.git_remote_set_pushurl(self._repo._repo, to_bytes(name), to_bytes(url))
517 check_error(err)
518
519 def add_fetch(self, name: str, refspec: str) -> None:
520 """Add a fetch refspec (str) to the 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