MCPcopy Index your code
hub / github.com/rilldata/rill / removeRemote

Function removeRemote

cli/pkg/cmdutil/helper.go:672–683  ·  view source on GitHub ↗
(path, remoteName string)

Source from the content-addressed store, hash-verified

670}
671
672func removeRemote(path, remoteName string) error {
673 repo, err := git.PlainOpen(path)
674 if err != nil {
675 return fmt.Errorf("failed to open git repository: %w", err)
676 }
677
678 err = repo.DeleteRemote(remoteName)
679 if err != nil && !errors.Is(err, git.ErrRemoteNotFound) {
680 return err
681 }
682 return nil
683}
684
685func hashStr(ss ...string) string {
686 hash := md5.New()

Callers 1

HandleRepoTransferMethod · 0.85

Calls 1

ErrorfMethod · 0.65

Tested by

no test coverage detected