UploadPack createUploadPack(Repository dst) { return new UploadPack(dst); }
@Override public UploadPack create(DaemonClient req, Repository db) throws ServiceNotEnabledException, ServiceNotAuthorizedException { UploadPack up = new UploadPack(db); up.setTimeout(getTimeout()); up.setPackConfig(getPackConfig()); return up; } };
UploadPack createUploadPack(final Repository dst) { return new UploadPack(dst); }
UploadPack createUploadPack(Repository dst) { return new UploadPack(dst); }
@Override public UploadPack create(HttpServletRequest req, Repository repo) throws ServiceNotEnabledException, ServiceNotAuthorizedException { // The Resolver above already checked READ access for us. // UploadPack up = new UploadPack(repo); up.setPackConfig(packConfig); return up; } }
/** * @see org.jenkinsci.plugins.gitserver.RepositoryResolver#createUploadPack(java.lang.String) */ @Override public UploadPack createUploadPack(String fullRepositoryName) throws IOException, InterruptedException { if (isMine(fullRepositoryName)) return new UploadPack(repo.openRepository()); return null; }
@Override public UploadPack createUploadPack(String fullRepositoryName) throws IOException, InterruptedException { if (isMine(fullRepositoryName)) return new UploadPack(repo.openRepository()); return null; }
@Override public UploadPack createUploadPack(String fullRepositoryName) throws IOException, InterruptedException { if (isMine(fullRepositoryName)) return new UploadPack(repo.openRepository()); return null; }
/** * This does nothing special. Synchronising the project with Overleaf will * have been performed by {@link WLRepositoryResolver}. * @param __ Not used, required by the {@link UploadPackFactory} interface * @param repository The JGit repository provided by the * {@link WLRepositoryResolver} * @return the {@link UploadPack}, used by JGit to serve the request */ @Override public UploadPack create( HttpServletRequest __, Repository repository ) { Log.info( "[{}] Creating upload-pack", repository.getWorkTree().getName() ); return new UploadPack(repository); }
public UploadPack create(final HttpServletRequest req, final Repository db) throws ServiceNotEnabledException, ServiceNotAuthorizedException { if (db.getConfig().get(CONFIG).enabled) return new UploadPack(db); else throw new ServiceNotEnabledException(); } }
public UploadPack create(final HttpServletRequest req, final Repository db) throws ServiceNotEnabledException, ServiceNotAuthorizedException { if (db.getConfig().get(CONFIG).enabled) return new UploadPack(db); else throw new ServiceNotEnabledException(); } }
public UploadPack create( DaemonClient req, Repository db ) throws ServiceNotEnabledException, ServiceNotAuthorizedException { UploadPack up = new UploadPack( db ); up.setTimeout( getTimeout() ); up.setPackConfig( getPackConfig() ); return up; } };
public UploadPack create(DaemonClient req, Repository db) throws ServiceNotEnabledException, ServiceNotAuthorizedException { UploadPack up = new UploadPack(db); up.setTimeout(getTimeout()); up.setPackConfig(getPackConfig()); return up; } };
@Override protected void run() throws Exception { final org.eclipse.jgit.transport.UploadPack up; try { FileKey key = FileKey.lenient(srcGitdir, FS.DETECTED); db = key.open(true /* must exist */); } catch (RepositoryNotFoundException notFound) { throw die(MessageFormat.format(CLIText.get().notAGitRepository, srcGitdir.getPath())); } up = new org.eclipse.jgit.transport.UploadPack(db); if (0 <= timeout) up.setTimeout(timeout); up.upload(ins, outs, errs); } }
@Override public UploadPack create(DaemonClient req, Repository db) throws ServiceNotEnabledException, ServiceNotAuthorizedException { UploadPack up = new UploadPack(db); up.setTimeout(getTimeout()); up.setPackConfig(getPackConfig()); return up; } };
@Override protected void runImpl() throws IOException, Failure { final UploadPack up = new UploadPack(repo); up.setPackConfig(config.getPackConfig()); up.setTimeout(config.getTimeout()); try { up.upload(in, out, err); } catch (InterruptedIOException err) { throw new Failure(128, "fatal: client IO read/write timeout", err); } } }
@Override protected void runImpl() throws IOException, Failure { final UploadPack up = new UploadPack(repo); up.setPackConfig(config.getPackConfig()); up.setTimeout(config.getTimeout()); try { up.upload(in, out, err); } catch (InterruptedIOException err) { throw new Failure(128, "fatal: client IO read/write timeout", err); } } }
@Override protected void execute(final FileSystemUser user, final Repository repository, final InputStream in, final OutputStream out, final OutputStream err, final JGitFileSystem fileSystem) { final UploadPack up = new UploadPack(repository); final PackConfig config = new PackConfig(repository); config.setCompressionLevel(Deflater.BEST_COMPRESSION); up.setPackConfig(config); up.setRefFilter(new HiddenBranchRefFilter()); try { up.upload(in, out, err); } catch (final IOException ignored) { } } }
final UploadPack up = new UploadPack(db); up.setTimeout(getTimeout()); up.setRefFilter(new HiddenBranchRefFilter());