Skip to content

Commit

Permalink
[JENKINS-20502] enforce configured refspecs have been fetched
Browse files Browse the repository at this point in the history
clone don't handle custom refspecs, so need to run fetch
  • Loading branch information
ndeloof committed Dec 14, 2013
1 parent 0863cc1 commit cf9dd72
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/main/java/hudson/plugins/git/GitSCM.java
Expand Up @@ -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) {
Expand Down

1 comment on commit cf9dd72

@jglick
Copy link
Member

@jglick jglick commented on cf9dd72 Jan 8, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Please sign in to comment.