Fail gist import if git repository too big
The following discussion from !103761 (merged) should be addressed:
-
@georgekoltsov started a discussion:
I wonder if we should fail gist import attempt if git repository exceeds certain size. WDYT? To avoid a situation where there are 10 files in the repository, but each of them is multi-GB in size.
Proposal
Implement a pre-import check and a post-import check when git repository exceeds 50Mb (the limit for snippet file content) * 10(max file count) and fail gist import attempt if necessary?
Edited by Martin Wortschack