Skip to content

Commit

Permalink
Merge pull request ds300#223 from chpio/fix-git-spawn-env-vars
Browse files Browse the repository at this point in the history
use default env variables while spawning git
  • Loading branch information
ds300 authored May 4, 2020
2 parents e8c8a40 + 3ac0f78 commit 2696a0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/makePatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export function makePatch({
const git = (...args: string[]) =>
spawnSafeSync("git", args, {
cwd: tmpRepo.name,
env: { HOME: tmpRepo.name },
env: { ...process.env, HOME: tmpRepo.name },
})

// remove nested node_modules just to be safe
Expand Down

0 comments on commit 2696a0f

Please sign in to comment.