diff options
Diffstat (limited to 'sandbox/testAppNevena/Front/node_modules/@npmcli/git/lib/opts.js')
-rw-r--r-- | sandbox/testAppNevena/Front/node_modules/@npmcli/git/lib/opts.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sandbox/testAppNevena/Front/node_modules/@npmcli/git/lib/opts.js b/sandbox/testAppNevena/Front/node_modules/@npmcli/git/lib/opts.js new file mode 100644 index 00000000..144e0a3a --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@npmcli/git/lib/opts.js @@ -0,0 +1,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 } +}) |