/** {@inheritDoc} */ public void clone(String url, String origin, boolean useShallowClone, String reference) throws GitException, InterruptedException { CloneCommand c = clone_().url(url).repositoryName(origin).reference(reference); if (useShallowClone) c.shallow(); c.execute(); }
CloneCommand cmd = git.clone_().url(rc.getURIs().get(0).toPrivateString()).repositoryName(rc.getName()); for (GitSCMExtension ext : extensions) { ext.decorateCloneCommand(this, build, git, listener, cmd);