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:
@@ -264,6 +264,7 @@ public class GitOverHttpServlet extends GitServlet {
|
|||||||
ReceivePack rp = rc.getReceivePack();
|
ReceivePack rp = rc.getReceivePack();
|
||||||
rp.setRefLogIdent(user.newRefLogIdent());
|
rp.setRefLogIdent(user.newRefLogIdent());
|
||||||
rp.setTimeout(config.getTimeout());
|
rp.setTimeout(config.getTimeout());
|
||||||
|
rp.setMaxObjectSizeLimit(config.getMaxObjectSizeLimit());
|
||||||
req.setAttribute(ATT_RC, rc);
|
req.setAttribute(ATT_RC, rc);
|
||||||
session.get().setAccessPath(AccessPath.GIT);
|
session.get().setAccessPath(AccessPath.GIT);
|
||||||
return rp;
|
return rp;
|
||||||
|
|||||||
Reference in New Issue
Block a user