Skip to content

Commit

Permalink
skip RC tags when checking versions diffs
Browse files Browse the repository at this point in the history
  • Loading branch information
haarg authored and rjbs committed Dec 21, 2013
1 parent 0aa9952 commit 9a62b0a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Porting/cmpVERSION.pl
Expand Up @@ -37,10 +37,16 @@
my $null = devnull();

unless (defined $tag_to_compare) {
my $check = 'HEAD';
while(1) {
$check = `git describe --abbrev=0 $check 2>$null`;
chomp $check;
last unless $check =~ /-RC/;
$check .= '^';
}
$tag_to_compare = $check;
# Thanks to David Golden for this suggestion.

$tag_to_compare = `git describe --abbrev=0 2>$null`;
chomp $tag_to_compare;
}

unless (length $tag_to_compare) {
Expand Down

0 comments on commit 9a62b0a

Please sign in to comment.