diff --git a/src/github/operations/branch.ts b/src/github/operations/branch.ts index 86197da..bf57f09 100644 --- a/src/github/operations/branch.ts +++ b/src/github/operations/branch.ts @@ -118,7 +118,7 @@ export function validateBranchName(branchName: string): void { * @param args - Git command arguments (e.g., ["checkout", "branch-name"]) */ function execGit(args: string[]): void { - execFileSync("git", args, { stdio: "inherit" }); + execFileSync("git", args, { stdio: "inherit", env: process.env }); } export type BranchInfo = { diff --git a/src/github/operations/restore-config.ts b/src/github/operations/restore-config.ts index 4e12739..a0c06cc 100644 --- a/src/github/operations/restore-config.ts +++ b/src/github/operations/restore-config.ts @@ -48,6 +48,7 @@ export function restoreConfigFromBase(baseBranch: string): void { // caller sees a clean error. execFileSync("git", ["fetch", "origin", baseBranch, "--depth=1"], { stdio: "inherit", + env: process.env, }); // Delete PR-controlled versions. If the restore below fails for a given path,