1
0
mirror of https://github.com/S2-/gitlit synced 2025-08-02 20:30:05 +02:00

bump exec maxBuffer size to 10MB

This commit is contained in:
s2
2020-05-06 20:22:47 +02:00
parent b0f3ba27b5
commit 9c26b8fb10

View File

@@ -15,7 +15,7 @@ let repoRootDir = repoDir;
function getLfsFileList(dir, cb) {
exec('git ls-files | git check-attr --stdin lockable', {
maxBuffer: 1024 * 1024,
maxBuffer: (1024 * 1024) * 10, //10MB
cwd: dir
},
(error, stdout, stderr) => {
@@ -47,7 +47,7 @@ function getLfsFileList(dir, cb) {
function getLfsLocks(dir, cb) {
exec('git lfs locks', {
maxBuffer: 1024 * 1024,
maxBuffer: (1024 * 1024) * 10, //10MB
cwd: dir
},
(error, stdout, stderr) => {
@@ -147,7 +147,7 @@ function createWindow() {
function startup(cb) {
exec('git rev-parse --show-toplevel', {
maxBuffer: 1024 * 1024,
maxBuffer: (1024 * 1024) * 10, //10MB
cwd: repoDir
},
(error, stdout, stderr) => {
@@ -170,7 +170,7 @@ function startup(cb) {
ipcMain.on('unlock', (event, file) => {
exec('git lfs unlock "' + file + '"', {
maxBuffer: 1024 * 1024,
maxBuffer: (1024 * 1024) * 10, //10MB
cwd: repoDir
},
(error, stdout, stderr) => {
@@ -193,7 +193,7 @@ ipcMain.on('unlock', (event, file) => {
ipcMain.on('lock', (event, file) => {
exec('git lfs lock --json "' + file + '"', {
maxBuffer: 1024 * 1024,
maxBuffer: (1024 * 1024) * 10, //10MB
cwd: repoDir
},
(error, stdout, stderr) => {