Skip to content

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

Closed
@gomain

Description

@gomain

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions