/** * {@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(); }
.timeout(timeout) .tags(tags) .execute(); setRemoteUrl(origin, url); for (RefSpec refSpec : refspecs) {
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(),
.asList(new RefSpec( "+" + Constants.R_HEADS + headName + ":" + Constants.R_REMOTES + remoteName + "/" + headName))).execute(); listener.getLogger().println("Done."); return new GitSCMFileSystem(client, remote, Constants.R_REMOTES + remoteName + "/" +headName, (AbstractGitSCMSource.SCMRevisionImpl) rev);
extension.decorateFetchCommand(this, git, listener, fetch); fetch.execute(); } catch (GitException ex) { throw new GitException("Failed to fetch from "+url.toString(), ex);