@@ -7,6 +7,11 @@ var readCmdShim = require('read-cmd-shim')
7
7
var isWindows = require ( '../lib/utils/is-windows.js' )
8
8
var Bluebird = require ( 'bluebird' )
9
9
10
+ if ( isWindows ) {
11
+ var PATH = process . env . PATH ? 'PATH' : 'Path'
12
+ process . env [ PATH ] += ';C:\\Program Files\\Git\\mingw64\\libexec\\git-core'
13
+ }
14
+
10
15
// remove any git envs so that we don't mess with the main repo
11
16
// when running git subprocesses in tests
12
17
Object . keys ( process . env ) . filter ( k => / ^ G I T / . test ( k ) ) . forEach (
@@ -103,6 +108,7 @@ ourenv.npm_config_globalconfig = exports.npm_config_globalconfig = configCommon.
103
108
ourenv . npm_config_global_style = 'false'
104
109
ourenv . npm_config_legacy_bundling = 'false'
105
110
ourenv . npm_config_fetch_retries = '0'
111
+ ourenv . npm_config_update_notifier = 'false'
106
112
ourenv . random_env_var = 'foo'
107
113
// suppress warnings about using a prerelease version of node
108
114
ourenv . npm_config_node_version = process . version . replace ( / - .* $ / , '' )
@@ -179,7 +185,7 @@ exports.makeGitRepo = function (params, cb) {
179
185
var added = params . added || [ 'package.json' ]
180
186
var message = params . message || 'stub repo'
181
187
182
- var opts = { cwd : root , env : { PATH : process . env . PATH } }
188
+ var opts = { cwd : root , env : { PATH : process . env . PATH || process . env . Path } }
183
189
var commands = [
184
190
git . chainableExec ( [ 'init' ] , opts ) ,
185
191
git . chainableExec ( [ 'config' , 'user.name' , user ] , opts ) ,
0 commit comments