In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/3d92e8b1e4996571de64a81f181b979bcc11778c?hp=2b9c1eb996946daabb1c27846b3c4f1375c5b7f9>
- Log ----------------------------------------------------------------- commit 3d92e8b1e4996571de64a81f181b979bcc11778c Author: Abigail <abig...@abigail.be> Date: Tue Feb 1 13:26:22 2011 +0100 Get the tag from git describe instead of $] ----------------------------------------------------------------------- Summary of changes: t/porting/cmp_version.t | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/t/porting/cmp_version.t b/t/porting/cmp_version.t index 9968082..ec2989b 100644 --- a/t/porting/cmp_version.t +++ b/t/porting/cmp_version.t @@ -30,9 +30,10 @@ if (! -d '.git' ) { } # -# Assume at this point, the version hasn't bumped. +# Thanks to David Golden for this suggestion. # -my $tag_to_compare = version -> parse ($]) -> normal; +my $tag_to_compare = `git describe --abbrev=0`; +chomp $tag_to_compare; my $source_dir = '.'; my $null = $^O eq 'MSWin32' ? 'nul' : '/dev/null'; -- Perl5 Master Repository