Limit maximum Git object size when pushing through HTTP

59d89c3eb2 introduced a configuration
parameter that allows to limit the maximum Git object size for pushes.
This limit was not set when the push was done through HTTP.

Change-Id: I069a64cc138edc263a320b89fb2812d5d8ab0a02
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
Edwin Kempin
2012-06-25 14:06:27 +02:00
parent 54ae179331
commit 56065c8dc6

View File

@@ -264,6 +264,7 @@ public class GitOverHttpServlet extends GitServlet {
ReceivePack rp = rc.getReceivePack();
rp.setRefLogIdent(user.newRefLogIdent());
rp.setTimeout(config.getTimeout());
rp.setMaxObjectSizeLimit(config.getMaxObjectSizeLimit());
req.setAttribute(ATT_RC, rc);
session.get().setAccessPath(AccessPath.GIT);
return rp;