/** * {@inheritDoc} * * @param url a {@link org.eclipse.jgit.transport.URIish} object. * @param refspecs a {@link java.util.List} object. * @throws hudson.plugins.git.GitException if any. * @throws java.lang.InterruptedException if any. */ @Override public void fetch(URIish url, List<RefSpec> refspecs) throws GitException, InterruptedException { fetch_().from(url, refspecs).execute(); }
/** {@inheritDoc} */ public void fetch(URIish url, List<RefSpec> refspecs) throws GitException, InterruptedException { fetch_().from(url, refspecs).execute(); }
refspecs = Collections.singletonList(new RefSpec("+refs/heads/*:refs/remotes/"+origin+"/*")); fetch_().from(urIish, refspecs) .shallow(shallow) .depth(depth)
listener.getLogger().println("URI syntax exception for '" + remoteName + "' " + ex); fetch.from(remoteURI, context.asRefSpecs()).execute(); return retriever.run(client, remoteName); } finally {
listener.getLogger().println("URI syntax exception for '" + remoteName + "' " + ex); client.fetch_().prune().from(remoteURI, builder.asRefSpecs()).execute(); listener.getLogger().println("Done."); return new GitSCMFileSystem(client, gitSCMSource.getRemote(), Constants.R_REMOTES+remoteName+"/"+head.getName(),
client.fetch_().prune().from(remoteURI, Arrays .asList(new RefSpec( "+" + Constants.R_HEADS + headName + ":" + Constants.R_REMOTES + remoteName + "/"
FetchCommand fetch = git.fetch_().from(url, remoteRepository.getFetchRefSpecs()); for (GitSCMExtension extension : extensions) { extension.decorateFetchCommand(this, git, listener, fetch);