This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
2b9c1eb
)
Get the tag from git describe instead of $]
author
Abigail
<abigail@abigail.be>
Tue, 1 Feb 2011 12:26:22 +0000
(13:26 +0100)
committer
Abigail
<abigail@abigail.be>
Tue, 1 Feb 2011 12:26:22 +0000
(13:26 +0100)
t/porting/cmp_version.t
patch
|
blob
|
blame
|
history
diff --git
a/t/porting/cmp_version.t
b/t/porting/cmp_version.t
index
9968082
..
ec2989b
100644
(file)
--- 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';