Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #110 from krosenvold/master
fix for [JENKINS-15803]
  • Loading branch information
olamy committed Nov 13, 2012
2 parents 58516ae + 6df02fd commit af5822b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/java/hudson/plugins/git/GitSCM.java
Expand Up @@ -640,6 +640,14 @@ public boolean requiresWorkspaceForPolling() {

@Override
protected PollingResult compareRemoteRevisionWith(AbstractProject<?, ?> project, Launcher launcher, FilePath workspace, final TaskListener listener, SCMRevisionState baseline) throws IOException, InterruptedException {
try {
return compareRemoteRevisionWithImpl( project, launcher, workspace, listener, baseline);
} catch (GitException e){
throw new IOException(e);
}
}

private PollingResult compareRemoteRevisionWithImpl(AbstractProject<?, ?> project, Launcher launcher, FilePath workspace, final TaskListener listener, SCMRevisionState baseline) throws IOException, InterruptedException {
// Poll for changes. Are there any unbuilt revisions that Hudson ought to build ?

listener.getLogger().println("Using strategy: " + buildChooser.getDisplayName());
Expand Down

0 comments on commit af5822b

Please sign in to comment.