private void configureCommand(TransportCommand<?, ?> command) { command.setTimeout(this.timeout); if (this.transportConfigCallback != null) { command.setTransportConfigCallback(this.transportConfigCallback); } CredentialsProvider credentialsProvider = getCredentialsProvider(); if (credentialsProvider != null) { command.setCredentialsProvider(credentialsProvider); } }
/** * Configure a child command with the current configuration set in * {@code this} command * * @param childCommand * a {@link org.eclipse.jgit.api.TransportCommand} object. * @return {@code this} */ protected C configure(TransportCommand childCommand) { childCommand.setCredentialsProvider(credentialsProvider); childCommand.setTimeout(timeout); childCommand.setTransportConfigCallback(transportConfigCallback); return self(); } }
private void setTimeout(TransportCommand<?, ?> pull) { pull.setTimeout(this.timeout); }
/** * Configure a child command with the current configuration set in * {@code this} command * * @param childCommand * @return {@code this} */ protected C configure(final TransportCommand childCommand) { childCommand.setCredentialsProvider(credentialsProvider); childCommand.setTimeout(timeout); childCommand.setTransportConfigCallback(transportConfigCallback); return self(); } }
/** * Configure a child command with the current configuration set in * {@code this} command * * @param childCommand * a {@link org.eclipse.jgit.api.TransportCommand} object. * @return {@code this} */ protected C configure(TransportCommand childCommand) { childCommand.setCredentialsProvider(credentialsProvider); childCommand.setTimeout(timeout); childCommand.setTransportConfigCallback(transportConfigCallback); return self(); } }