Skip to content

Commit dff8d14

Browse files
committed
Do not warn if git minor number is less than 50
Git 2.21.0 has been released and is a good version to use.
1 parent 3c8f1d7 commit dff8d14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/jenkins/plugins/git/GitSampleRepoRule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public boolean gitVersionAtLeast(int neededMajor, int neededMinor, int neededPat
114114
if (gitMajor < 1 || gitMajor > 3) {
115115
System.out.println("WARNING: Unexpected git major version " + gitMajor + " parsed from '" + versionOutput + "', field:'" + fields[0] + "'");
116116
}
117-
if (gitMinor < 0 || gitMinor > 20) {
117+
if (gitMinor < 0 || gitMinor > 50) {
118118
System.out.println("WARNING: Unexpected git minor version " + gitMinor + " parsed from '" + versionOutput + "', field:'" + fields[1] + "'");
119119
}
120120
if (gitPatch < 0 || gitPatch > 20) {

0 commit comments

Comments
 (0)