@Override public void run() { try { new ReceiveCommand(gitDir, environments) .input(ServletUtils.getInputStream(request)) .output(response.getOutputStream()) .call(); } catch (IOException e) { throw new RuntimeException(e); } }
@Override public void run() { try { new UploadCommand(gitDir, environments) .input(ServletUtils.getInputStream(request)) .output(response.getOutputStream()) .call(); } catch (IOException e) { throw new RuntimeException(e); } }
rsp.setContentType(RECEIVE_PACK_RESULT_TYPE); rp.receive(getInputStream(req), out, null); out.close(); } catch (UnpackException e) {
rsp.setContentType(UPLOAD_PACK_RESULT_TYPE); up.upload(getInputStream(req), out, null); out.close();
rsp.setContentType(UPLOAD_PACK_RESULT_TYPE); up.upload(getInputStream(req), out, null); out.close();
rsp.setContentType(RECEIVE_PACK_RESULT_TYPE); rp.receive(getInputStream(req), out, null); out.close(); } catch (CorruptObjectException e ) {