Skip to content

Commit 0a19c38

Browse files
author
Till Tomczak
committed
feat(utils): Improve Git Command Execution for Large Outputs This commit introduces a new promis...
1 parent b14573e commit 0a19c38

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

utils.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ const { exec } = require('child_process');
88
*/
99
function executeGitCommand(command, cwd) {
1010
return new Promise((resolve, reject) => {
11-
exec(command, { cwd }, (error, stdout, stderr) => {
11+
// Erhöhe maxBuffer auf 10 MB (10 * 1024 * 1024), um große Ausgaben zu unterstützen
12+
exec(command, { cwd, maxBuffer: 10 * 1024 * 1024 }, (error, stdout, stderr) => {
1213
if (error) {
1314
// Detailliertere Fehlermeldung
1415
const errorMessage = stderr || error.message || 'Unbekannter Git-Fehler';

0 commit comments

Comments
 (0)