Skip to content

Commit

Permalink
This is just good form, don't interpolate to 'undefined'
Browse files Browse the repository at this point in the history
  • Loading branch information
niik committed Jun 5, 2024
1 parent 5cd7d8f commit b813449
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/git-environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export function setupEnvironment(

if (process.platform === 'win32') {
const mingw = process.arch === 'x64' ? 'mingw64' : 'mingw32'
env.PATH = `${gitDir}\\${mingw}\\bin;${gitDir}\\${mingw}\\usr\\bin;${env.PATH}`
env.PATH = `${gitDir}\\${mingw}\\bin;${gitDir}\\${mingw}\\usr\\bin;${env.PATH ?? ''}`
}

env.GIT_EXEC_PATH = resolveGitExecPath(env)
Expand Down

0 comments on commit b813449

Please sign in to comment.