Skip to content
Permalink
Browse files

Merge pull request #110 from krosenvold/master

fix for [JENKINS-15803]
  • Loading branch information
olamy committed Nov 13, 2012
2 parents 58516ae + 6df02fd commit af5822b71b8a79f712c0bafeca09b96c5a15e2fb
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/main/java/hudson/plugins/git/GitSCM.java
@@ -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());

0 comments on commit af5822b

Please sign in to comment.
You can’t perform that action at this time.