I want to reject cloning of large repo. lets say if a repo rep1 has size of 2GB and I want to add check where if repo size is greater than 2GB then repo cloning should not be allowed.
How can I do that and what is the best way to do that?