Skip to content

Commit 8b43cf4

Browse files
authored
fix: update buffer size to 10MB (#427)
1 parent 0c9966a commit 8b43cf4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils/git/ls-files.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ export const lsFiles = (): string[] => {
44
// --others & --exclude-standard: get untracked files that are not ignored
55
// --cached: get files that are staged
66
const fileBuffer = execSync(
7-
'git ls-files --others --cached --exclude-standard',
7+
'git ls-files --others --cached --exclude-standard ',
8+
{ maxBuffer: 1024 * 1024 * 10 }, // 10 MB buffer
89
)
910
const files = fileBuffer.toString().split('\n').filter(Boolean)
1011

0 commit comments

Comments
 (0)