Manigandan S <etc.mani@xxxxxxxxx> writes: > Let me explain it in detail, if I was not clear. Do not top-post on this list. You said you wanted to restrict the size of a push, but what you are trying is to restrict the size of a repository after a push. If accepting this push will result in your repository go over the quota, the push will be denied. Otherwise the push will be accepted. If that is the case, how much the resulting repository weighs is what you are trying to measure, not the size of _this_ push, i.e. the amount of additional data this push will introduce, and "du -s" for the repository inside pre-receive-hook is the way to do so. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html