Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2871bd1

Browse files
vsavkinFrozenPandaz
authored andcommittedAug 13, 2020
fix(core): increase maxBuffer when invoking git to get file hashes
1 parent 9a2341a commit 2871bd1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎packages/workspace/src/core/hasher/git-hasher.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,11 @@ function parseGitStatus(output: string): Map<string, string> {
4141
}
4242

4343
function spawnProcess(command: string, args: string[], cwd: string): string {
44-
const r = spawnSync(command, args, { cwd });
44+
const r = spawnSync(command, args, { cwd, maxBuffer: 50 * 1024 * 1024 });
4545
if (r.status !== 0) {
46-
throw new Error(`Failed to run ${command} ${args.join(' ')}`);
46+
throw new Error(
47+
`Failed to run ${command} ${args.join(' ')}.\n${r.stdout}\n${r.stderr}`
48+
);
4749
}
4850
return r.stdout.toString().trim();
4951
}

0 commit comments

Comments
 (0)
Please sign in to comment.