blob: 144e0a3aaf03f4eb7f0a4e6a9d83fcb9ed1ea2af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// Values we want to set if they're not already defined by the end user
// This defaults to accepting new ssh host key fingerprints
const gitEnv = {
GIT_ASKPASS: 'echo',
GIT_SSH_COMMAND: 'ssh -oStrictHostKeyChecking=accept-new'
}
module.exports = (opts = {}) => ({
stdioString: true,
...opts,
shell: false,
env: opts.env || { ...gitEnv, ...process.env }
})
|