(opts: RemoteRemoveWithDeps)
| 466 | } |
| 467 | |
| 468 | export 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 | |
| 480 | export interface GitRemoteListOptions { |
| 481 | dir?: string; |
no test coverage detected