summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--t/porting/cmp_version.t5
1 files changed, 3 insertions, 2 deletions
diff --git a/t/porting/cmp_version.t b/t/porting/cmp_version.t
index 9968082243..ec2989b662 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';