(client: GitClient, unsanitizedArgs: string[])
| 20 | import {GithubClient} from './github.js'; |
| 21 | import {getRepositoryGitUrl} from './github-urls.js'; |
| 22 | import {determineRepoBaseDirFromCwd} from '../repo-directory.js'; |
| 23 | |
| 24 | /** Error for failed Git commands. */ |
| 25 | export class GitCommandError extends Error { |
| 26 | // Note: Do not expose the unsanitized arguments as a public property. NodeJS |
| 27 | // could print the properties of an error instance and leak e.g. a token. |
| 28 | constructor(client: GitClient, unsanitizedArgs: string[]) { |
| 29 | // Errors are not guaranteed to be caught. To ensure that we don't |
| 30 | // accidentally leak the Github token that might be used in a command, |
nothing calls this directly
no test coverage detected