Skip to content

Commit

Permalink
716: Git version check pattern matching is too strict
Browse files Browse the repository at this point in the history
  • Loading branch information
tstuefe committed Sep 22, 2020
1 parent 36edd9e commit 30dd1ec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
public class GitVersion {

private static final Pattern versionPattern = Pattern.compile(
"git version (?<versionString>.*(?<major>\\d)\\.(?<minor>\\d{2})\\.(?<security>\\d).*)");
"git version (?<versionString>.*(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<security>\\d+).*)");
private static final GitVersion UNKNOWN = new GitVersion("UNKNOWN", -1, -1, -1);

private final String versionString;
Expand Down

0 comments on commit 30dd1ec

Please sign in to comment.