Reputation: 436
How to limit SVN
repository size without using pre-commit hooks
?
pre-commit hook raised when all files that needs to be commited are already on server.
My repository is public and I dont want to get over 500 Gb
files to be commited.
I want to limit repository to 5 Mb
size including all commits. May be I can use some 3rd party software to do this? For example software to limit folders size?
Upvotes: 3
Views: 8144
Reputation: 436
So, the answer:
Upvotes: 1
Reputation: 56
If you are using apache server you might be able to do (I've never had cause to do it myself so Its not granteed to work)
LimitRequestBody 524288000
in your directory configuration to limit commits, To limit the overall repository size I'd suggest you use quotas... I imagine it'll die rather ambiguously through once you hit the quota mind. Out of curiousity what do you have against pre-commits?
Upvotes: 0