@Deprecated @Override @Restricted(DoNotUse.class) @RestrictedSince("3.4.0") protected List<RefSpec> getRefSpecs() { return new GitSCMSourceContext<>(null, SCMHeadObserver.none()).withTraits(traits).asRefSpecs(); }
/** * Constructor. * * @param source the source. * @param context the context. * @param listener the (optional) {@link TaskListener}. */ public GitSCMSourceRequest(@NonNull SCMSource source, @NonNull GitSCMSourceContext<?, ?> context, TaskListener listener) { super(source, context, listener); fetchBranches = context.wantBranches(); fetchTags = context.wantTags(); remoteName = context.remoteName(); gitTool = context.gitTool(); refSpecs = Collections.unmodifiableList(context.asRefSpecs()); }
listener.getLogger().println("URI syntax exception for '" + remoteName + "' " + ex); fetch.from(remoteURI, context.asRefSpecs()).execute(); return retriever.run(client, remoteName); } finally {