[libdist-zilla-plugin-githubmeta-perl] 02/04: handle msysgit versions (1.9.5.msysgit.0) so version.pm doesn't choke

Axel Beckert abe at deuxchevaux.org
Sun Apr 26 22:26:11 UTC 2015


This is an automated email from the git hooks/post-receive script.

abe pushed a commit to annotated tag 0.48
in repository libdist-zilla-plugin-githubmeta-perl.

commit 99589e9197967e4c628f362d9c273a8b0cafbf85
Author: Christian Walde <walde.christian at googlemail.com>
Date:   Fri Feb 20 04:36:15 2015 +0100

    handle msysgit versions (1.9.5.msysgit.0) so version.pm doesn't choke
---
 lib/Dist/Zilla/Plugin/GithubMeta.pm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/Dist/Zilla/Plugin/GithubMeta.pm b/lib/Dist/Zilla/Plugin/GithubMeta.pm
index 48c4d08..24a56b3 100644
--- a/lib/Dist/Zilla/Plugin/GithubMeta.pm
+++ b/lib/Dist/Zilla/Plugin/GithubMeta.pm
@@ -57,7 +57,8 @@ sub _acquire_repo_info {
 
   {
     my $gitver = `git version`;
-    my ($ver) = $gitver =~ m!git version ([0-9.]+)!;
+    my ($ver) = $gitver =~ m!git version ([0-9.]+(\.msysgit)?[0-9.]+)!;
+    $ver =~ s/\.msysgit//;
     chomp $gitver;
     require version;
     my $ver_obj = try { version->parse( $ver ) }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libdist-zilla-plugin-githubmeta-perl.git



More information about the Pkg-perl-cvs-commits mailing list