Ken Dreyer writes:

> On Thu, Jan 24, 2013 at 6:35 AM, anapsix <anastas.seme...@gmail.com> wrote:
>> Would a pre-receive hook get file sizes from client when push is
>> initiated?  If so, calculating available space (quota allowance) and
>> rejecting push based on that would be trivial..
>
> Yes, I was wondering the same thing. On the other hand, it looks like I
> cannot obtain the filesizes server-side until the server receives the
> push, in which case it's too late. Do I have that right?

Pretty much. The amount of disk space introduced by a series of commits
would be hard to calculate correctly, git uses hard links between cloned
repositories, and variations between file systems would introduce some
uncertainty here. But we would be able to stop pushes to a repository
that has already grown beyond its limits using the disk_usage attribute
from the database.

Cheers,
- Marius

-- 
-- 
To post to this group, send email to gitorious@googlegroups.com
To unsubscribe from this group, send email to
gitorious+unsubscr...@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
"Gitorious" group.
To unsubscribe from this group, send email to 
gitorious+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to