Skip to content

git override option.env causing lost of PATH resulting in ENOENT #253

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
gomain opened this issue Sep 4, 2020 · 1 comment
Closed

git override option.env causing lost of PATH resulting in ENOENT #253

gomain opened this issue Sep 4, 2020 · 1 comment

Comments

@gomain
Copy link
Contributor

gomain commented Sep 4, 2020

The following code in makePatch

const git = (...args: string[]) =>
spawnSafeSync("git", args, {
cwd: tmpRepo.name,
env: { HOME: tmpRepo.name },
})

causes ENOENT error form child_process.spawn

@gomain
Copy link
Contributor Author

gomain commented Sep 4, 2020

This was fixed in 3ac0f78. Please release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant