This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
use ~1 instead of ^ for parent commit
[perl5.git] / Porting / cmpVERSION.pl
index 7964b9b..95f695f 100755 (executable)
@@ -42,7 +42,7 @@ unless (defined $tag_to_compare) {
         $check = `git describe --abbrev=0 $check 2>$null`;
         chomp $check;
         last unless $check =~ /-RC/;
-        $check .= '^';
+        $check .= '~1';
     }
     $tag_to_compare = $check;
     # Thanks to David Golden for this suggestion.