( args: string[], cwd: string )
| 65 | }; |
| 66 | |
| 67 | export const runGit = async ( |
| 68 | args: string[], |
| 69 | cwd: string |
| 70 | ): Promise<{ stdout: string; stderr: string }> => { |
| 71 | const { stdout = '', stderr = '' } = await fsExecFile('git', args, { cwd }); |
| 72 | return { stdout, stderr }; |
| 73 | }; |
| 74 | |
| 75 | export const configureGitUser = async (gitDir: string): Promise<void> => { |
| 76 | await runGit(['config', 'user.email', 'test@example.com'], gitDir); |
no outgoing calls
no test coverage detected
searching dependent graphs…