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) {
|
async function gh(cwd, args) {
|
||||||
try {
|
try {
|
||||||
const result = await execFileAsync("gh", args, {
|
const result = await execFileAsync("gh", args, { cwd, maxBuffer: 8 * 1024 * 1024 });
|
||||||
cwd,
|
|
||||||
env: process.env,
|
|
||||||
maxBuffer: 8 * 1024 * 1024,
|
|
||||||
});
|
|
||||||
return { stdout: result.stdout, stderr: result.stderr };
|
return { stdout: result.stdout, stderr: result.stderr };
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
const error = new Error(`gh ${args[0]} failed`);
|
const error = new Error(`gh ${args[0]} failed`);
|
||||||
|
|||||||
Reference in New Issue
Block a user