[libdist-zilla-plugin-githubmeta-perl] 03/03: Change LANG env var to 'C' before calling 'git'
Axel Beckert
abe at deuxchevaux.org
Sun Apr 26 22:26:00 UTC 2015
This is an automated email from the git hooks/post-receive script.
abe pushed a commit to annotated tag 0.38
in repository libdist-zilla-plugin-githubmeta-perl.
commit bb85bd8d712ff12b2fd2bea2a8495f279099fc9b
Author: Chris 'BinGOs' Williams <chris at bingosnet.co.uk>
Date: Mon Sep 9 09:53:35 2013 +0100
Change LANG env var to 'C' before calling 'git'
The plugin fails if locale is set for instance to LANG=de_DE.UTF-8,
so git output is German:
> LANG=de_DE.UTF-8 git remote show -n origin
* externes Projektarchiv origin
URL zum Abholen: ...
URL zum Versenden: ...
Reported by Jakob Voss
---
dist.ini | 2 +-
lib/Dist/Zilla/Plugin/GithubMeta.pm | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/dist.ini b/dist.ini
index 3a9ff13..a14776d 100644
--- a/dist.ini
+++ b/dist.ini
@@ -1,5 +1,5 @@
name = Dist-Zilla-Plugin-GithubMeta
-version = 0.36
+version = 0.38
author = Chris Williams <chris at bingosnet.co.uk>
author = Ricardo SIGNES <rjbs at cpan.org>
license = Perl_5
diff --git a/lib/Dist/Zilla/Plugin/GithubMeta.pm b/lib/Dist/Zilla/Plugin/GithubMeta.pm
index 5c59423..5f108a1 100644
--- a/lib/Dist/Zilla/Plugin/GithubMeta.pm
+++ b/lib/Dist/Zilla/Plugin/GithubMeta.pm
@@ -125,6 +125,7 @@ sub metadata {
sub _url_for_remote {
my ($self, $remote) = @_;
+ local $ENV{LANG}='C';
my @remote_info = `git remote show -n $remote`;
for my $line (@remote_info) {
chomp $line;
--
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