Executes the given git command. Throws if the command fails.
(args: string[], options?: GitCommandRunOptions)
| 67 | config: {github: GithubConfig}, |
| 68 | /** The full path to the root of the repository base. */ |
| 69 | readonly baseDir = determineRepoBaseDirFromCwd(), |
| 70 | ) { |
| 71 | this.config = config; |
| 72 | this.remoteConfig = config.github; |
| 73 | this.remoteParams = {owner: config.github.owner, repo: config.github.name}; |
| 74 | this.mainBranchName = config.github.mainBranchName; |
| 75 | } |
| 76 | |
| 77 | /** Executes the given git command. Throws if the command fails. */ |
| 78 | run(args: string[], options?: GitCommandRunOptions): Omit<SpawnSyncReturns<string>, 'status'> { |
| 79 | const result = this.runGraceful(args, options); |
| 80 | if (result.status !== 0) { |
no test coverage detected