Permalink
Browse files

Make sure --version always prefers the date form of tag (starting wit…

…h '2').
  • Loading branch information...
1 parent c196801 commit 9fd5eaa6c8aa5f0cf22247e0def0929715e322ed @pmichaud pmichaud committed Jul 29, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 build/gen_version.pl
View
2 build/gen_version.pl
@@ -14,7 +14,7 @@ =head1 TITLE
my $VERSION = <$fh>;
close $fh;
-if (-d '.git' && open(my $GIT, '-|', "git describe")) {
+if (-d '.git' && open(my $GIT, '-|', "git describe --match '2*'")) {
$VERSION = <$GIT>;
close $GIT;
}

0 comments on commit 9fd5eaa

Please sign in to comment.