Skip to content
Browse files
[JENKINS-20502] enforce configured refspecs have been fetched
clone don't handle custom refspecs, so need to run fetch
  • Loading branch information
ndeloof committed Dec 14, 2013
1 parent 0863cc1 commit cf9dd72d9e7c242ae68fd1f6f65048691fab2a28
Showing with 0 additions and 2 deletions.
  1. +0 −2 src/main/java/hudson/plugins/git/
@@ -822,9 +822,7 @@ private void retrieveChanges(AbstractBuild build, GitClient git, BuildListener l
} else {
log.println("Cloning the remote Git repository");

// Clone from the first and then fetch from the rest
RemoteConfig rc = repos.get(0);
repos = repos.subList(1,repos.size());
try {
CloneCommand cmd = git.clone_().url(rc.getURIs().get(0).toPrivateString()).repositoryName(rc.getName());
for (GitSCMExtension ext : extensions) {

1 comment on commit cf9dd72


This comment has been minimized.

Copy link

@jglick jglick commented on cf9dd72 Jan 8, 2014

Is this intended to fix JENKINS-20502? If so, why is that marked unresolved (and in the ghprb plugin)?

Please sign in to comment.