MCPcopy Index your code
hub / github.com/git-bug/git-bug / AddRemote

Method AddRemote

repository/repo.go:233–233  ·  view source on GitHub ↗

AddRemote add a new remote to the repository

(name string, url string)

Source from the content-addressed store, hash-verified

231type repoTest interface {
232 // AddRemote add a new remote to the repository
233 AddRemote(name string, url string) error
234
235 // GetLocalRemote return the URL to use to add this repo as a local remote
236 GetLocalRemote() string

Callers 5

TestRemoveFunction · 0.65
SetupGoGitReposAndRemoteFunction · 0.65
TestIdentityRemoveFunction · 0.65
makeTestContextRemoteFunction · 0.65
Example_entityFunction · 0.65

Implementers 2

mockRepoTestrepository/mock_repo.go
GoGitReporepository/gogit.go

Calls

no outgoing calls

Tested by 4

TestRemoveFunction · 0.52
TestIdentityRemoveFunction · 0.52
makeTestContextRemoteFunction · 0.52
Example_entityFunction · 0.52