(repoDir)
| 71 | }; |
| 72 | |
| 73 | function getGitClient(repoDir) { |
| 74 | const env = Object.fromEntries( |
| 75 | Object.entries(process.env).filter(([key]) => !GUARDED_ENV.test(key)), |
| 76 | ); |
| 77 | const git = simpleGit(repoDir, { |
| 78 | unsafe: { allowUnsafeSshCommand: true }, |
| 79 | allowEnvironment: ['GIT_SSH_COMMAND', 'GIT_SSL_NO_VERIFY'], |
| 80 | }).env({ ...env, GIT_SSH_COMMAND, GIT_SSL_NO_VERIFY }); |
| 81 | return git; |
| 82 | } |
| 83 | |
| 84 | module.exports = { |
| 85 | getExpectationsFilename, |
no test coverage detected