Skip to content

Commit 52d75b9

Browse files
committed
Comment out changes from 4f963ad, b55df6b, and 46f610e.
Restores the logic in getCandidateRevisions back to commit 793ecb4.
1 parent 2a4bdab commit 52d75b9

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/main/java/hudson/plugins/git/util/DefaultBuildChooser.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,10 @@ public Collection<Revision> getCandidateRevisions(boolean isPollCall, String sin
9292
}
9393

9494
verbose(listener, "Found a new commit {0} to be built on {1}", sha1, singleBranch);
95-
95+
Revision revision = new Revision(sha1);
96+
revision.getBranches().add(new Branch(singleBranch, sha1));
97+
return Collections.singletonList(revision);
98+
/*
9699
// calculate the revisions that are new compared to the last build
97100
List<Revision> candidateRevs = new ArrayList<Revision>();
98101
List<ObjectId> allRevs = git.revListAll(); // index 0 contains the newest revision
@@ -116,6 +119,7 @@ public Collection<Revision> getCandidateRevisions(boolean isPollCall, String sin
116119
return Collections.singletonList(objectId2Revision(singleBranch, sha1));
117120
}
118121
return candidateRevs;
122+
*/
119123
} catch (GitException e) {
120124
// branch does not exist, there is nothing to build
121125
verbose(listener, "Failed to rev-parse: {0}", singleBranch);

0 commit comments

Comments
 (0)