Skip to content

Commit 3ac0f78

Browse files
committed
use default env variables while spawning git
issue ds300#181
1 parent 38b4173 commit 3ac0f78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/makePatch.ts

Lines changed: 1 addition & 1 deletion
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)