Skip to content

Commit 2696a0f

Browse files
authored
Merge pull request ds300#223 from chpio/fix-git-spawn-env-vars
use default env variables while spawning git
2 parents e8c8a40 + 3ac0f78 commit 2696a0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/makePatch.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export function makePatch({
157157
const git = (...args: string[]) =>
158158
spawnSafeSync("git", args, {
159159
cwd: tmpRepo.name,
160-
env: { HOME: tmpRepo.name },
160+
env: { ...process.env, HOME: tmpRepo.name },
161161
})
162162

163163
// remove nested node_modules just to be safe

0 commit comments

Comments
 (0)