fix(server): revert unnecessary gh.js env change from Task 4

This commit is contained in:
2026-08-25 09:38:09 +07:00
parent a2fcd9bafc
commit 0343e706a7
+1 -5
View File
@@ -23,11 +23,7 @@ const execFileAsync = promisify(execFile);
*/
async function gh(cwd, args) {
try {
const result = await execFileAsync("gh", args, {
cwd,
env: process.env,
maxBuffer: 8 * 1024 * 1024,
});
const result = await execFileAsync("gh", args, { cwd, maxBuffer: 8 * 1024 * 1024 });
return { stdout: result.stdout, stderr: result.stderr };
} catch (err) {
const error = new Error(`gh ${args[0]} failed`);