@@ -7,6 +7,11 @@ var readCmdShim = require('read-cmd-shim')
77var isWindows = require ( '../lib/utils/is-windows.js' )
88var Bluebird = require ( 'bluebird' )
99
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+
1015// remove any git envs so that we don't mess with the main repo
1116// when running git subprocesses in tests
1217Object . keys ( process . env ) . filter ( k => / ^ G I T / . test ( k ) ) . forEach (
@@ -103,6 +108,7 @@ ourenv.npm_config_globalconfig = exports.npm_config_globalconfig = configCommon.
103108ourenv . npm_config_global_style = 'false'
104109ourenv . npm_config_legacy_bundling = 'false'
105110ourenv . npm_config_fetch_retries = '0'
111+ ourenv . npm_config_update_notifier = 'false'
106112ourenv . random_env_var = 'foo'
107113// suppress warnings about using a prerelease version of node
108114ourenv . npm_config_node_version = process . version . replace ( / - .* $ / , '' )
@@ -179,7 +185,7 @@ exports.makeGitRepo = function (params, cb) {
179185 var added = params . added || [ 'package.json' ]
180186 var message = params . message || 'stub repo'
181187
182- var opts = { cwd : root , env : { PATH : process . env . PATH } }
188+ var opts = { cwd : root , env : { PATH : process . env . PATH || process . env . Path } }
183189 var commands = [
184190 git . chainableExec ( [ 'init' ] , opts ) ,
185191 git . chainableExec ( [ 'config' , 'user.name' , user ] , opts ) ,
0 commit comments