MCPcopy Create free account
hub / github.com/cloudflare/computer / remoteRemoveWith

Function remoteRemoveWith

packages/computer/src/git/network.ts:468–478  ·  view source on GitHub ↗
(opts: RemoteRemoveWithDeps)

Source from the content-addressed store, hash-verified

466}
467
468export async function remoteRemoveWith(opts: RemoteRemoveWithDeps): Promise<void> {
469 const dir = opts.dir ?? "/";
470 try {
471 await opts.git.deleteRemote({ fs: opts.fs, dir, remote: opts.name });
472 } catch (cause) {
473 if (isNotARepositoryCause(cause)) throw new NotARepositoryError(dir, { cause });
474 throw new GitError("EREMOTEFAIL", `git remote remove failed: ${errorMessage(cause)}`, {
475 cause,
476 });
477 }
478}
479
480export interface GitRemoteListOptions {
481 dir?: string;

Callers 2

network.test.tsFile · 0.85
remoteRemoveFunction · 0.85

Calls 3

isNotARepositoryCauseFunction · 0.85
deleteRemoteMethod · 0.80
errorMessageFunction · 0.70

Tested by

no test coverage detected