(
projectId: string,
args: string[],
options: {
env?: NodeJS.ProcessEnv
maxBuffer?: number | undefined
timeout?: number | undefined
} = {},
)
| 11 | } |
| 12 | |
| 13 | export async function runGitWithOptions( |
| 14 | projectId: string, |
| 15 | args: string[], |
| 16 | options: { |
| 17 | env?: NodeJS.ProcessEnv |
| 18 | maxBuffer?: number | undefined |
| 19 | timeout?: number | undefined |
| 20 | } = {}, |
| 21 | ) { |
| 22 | return execFile('git', args, { |
| 23 | cwd: projectId, |
| 24 | env: options.env, |
| 25 | timeout: options.timeout ?? 3_000, |
| 26 | maxBuffer: options.maxBuffer ?? 1024 * 128, |
| 27 | }) |
| 28 | } |
| 29 | |
| 30 | export function getNonInteractiveGitEnv(baseEnv?: NodeJS.ProcessEnv) { |
| 31 | return { |
no outgoing calls
no test coverage detected