fix(server): revert unnecessary gh.js env change from Task 4
This commit is contained in:
+1
-5
@@ -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`);
|
||||
|
||||
Reference in New Issue
Block a user