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

Function _remote_create_cb

pygit2/callbacks.py:601–611  ·  view source on GitHub ↗
(remote_out, repo, name, url, data)

Source from the content-addressed store, hash-verified

599
600@libgit2_callback
601def _remote_create_cb(remote_out, repo, name, url, data):
602 from .repository import Repository
603
604 remote = data.remote(
605 Repository._from_c(repo, False), ffi.string(name), ffi.string(url)
606 )
607 remote_out[0] = remote._remote
608 # we no longer own the C object
609 remote._remote = ffi.NULL
610
611 return 0
612
613
614@libgit2_callback

Callers

nothing calls this directly

Calls 2

stringMethod · 0.80
_from_cMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…