cmd.reference(build.getEnvironment(listener).expand(reference));
/** {@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(); }