We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35f321c commit 766bfbeCopy full SHA for 766bfbe
lib/opts.js
@@ -7,5 +7,6 @@ const gitEnv = {
7
module.exports = (opts = {}) => ({
8
stdioString: true,
9
...opts,
10
+ shell: false,
11
env: opts.env || { ...gitEnv, ...process.env }
12
})
test/opts.js
@@ -7,6 +7,9 @@ const gitEnv = {
t.match(gitOpts().env, gitEnv, 'got the git defaults we want')
+t.equal(gitOpts().shell, false, 'shell defaults to false')
+t.equal(gitOpts({ shell: '/bin/bash' }).shell, false, 'shell cannot be overridden')
+
13
t.test('does not override', t => {
14
const { GIT_ASKPASS, GIT_SSH_COMMAND } = process.env
15
t.teardown(() => {
0 commit comments