Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] Any plan to provide receive.unpackLimit option?

On Thu, Mar 13, 2014 at 8:01 PM, Yi, EungJun <semtlenori@xxxxxxxxx> wrote:
> Do you have any plan to provide "receive.unpackLimit" option? I need the
> option in order to make my JGit server not to unpack large packs.
>
> Git provides the option. When client pushes, Git server unpacks the pack
> client have pushed if only the number of objects the pack have are less than
> the value of the option. It reduces the overload of unpacking huge packs.
>
> JGit seems to always parse the pack client pushes regardless of number of
> the objects the pack have. JGit provides MaxObjectSizeLimit option and the
> parser seems to abort if it detects an object larger than the value of the
> option. It is also helpful to reduce the overload but I think
> "receive.unpackLimit" option is also required because it can stop the
> parsing in the early stage.

I think you misunderstand what JGit is doing.

JGit is hard-coded to behave as though receive.unpackLimit is 0. It
never unpacks the pack.


Back to the top