stable
Clone or download
Read-only
This is part of story #12327 set limits on git-lfs file usage This commits introduces a new table with a default file max size set to 512Mb. If a push occured with at least one file bigger than this limit, the push will be rejected. The HTTP code used is 429 as per documentation[1]. This value is not yet editable through the Web UI. [1] https://github.com/git-lfs/git-lfs/blob/v2.6.1/docs/api/batch.md Change-Id: I02d53a4ccc2863536e1c9228a49b2c552a337284
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/gitlfs/db/install.sql | +7 | −0 | Go to diff View file |
A | plugins/gitlfs/db/mysql/updates/2018/201812111541_add_max_size_table.php | +66 | −0 | Go to diff View file |
A | plugins/gitlfs/include/Admin/AdminDao.php | +31 | −0 | Go to diff View file |
M | plugins/gitlfs/include/Batch/Response/BatchSuccessfulResponseBuilder.php | +27 | −0 | Go to diff View file |
A | plugins/gitlfs/include/Batch/Response/MaxFileSizeException.php | +25 | −0 | Go to diff View file |
M | plugins/gitlfs/include/gitlfsPlugin.class.php | +1 | −0 | Go to diff View file |
M | plugins/gitlfs/phpunit/Batch/Response/BatchSuccessfulResponseBuilderTest.php | +52 | −0 | Go to diff View file |