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

Function create_remote

test/test_repository.py:759–760  ·  view source on GitHub ↗
(repo: Repository, name: str, url: str)

Source from the content-addressed store, hash-verified

757
758 # here we override the name
759 def create_remote(repo: Repository, name: str, url: str) -> Remote:
760 return repo.remotes.create('custom_remote', url)
761
762 repo = clone_repository(
763 url, repo_path, repository=create_repository, remote=create_remote

Callers

nothing calls this directly

Calls 1

createMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…