@Override
protected void execute(final GitDaemonClient dc, final Repository db)
throws IOException, ServiceNotEnabledException,
ServiceNotAuthorizedException {
UploadPack up = uploadPackFactory.create(dc, db);
InputStream in = dc.getInputStream();
OutputStream out = dc.getOutputStream();
up.upload(in, out, null);
}
}, new GitDaemonService("receive-pack", "receivepack") {
{
setEnabled(true);
setOverridable(false);