Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not assume that the current directory is already the distribution root #13

Merged
merged 1 commit into from May 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions dist.ini
Expand Up @@ -18,3 +18,4 @@ Moose = 1.07
MooseX::Types::URI = 0.03
Try::Tiny = 0
version = 0
File::pushd = 0
2 changes: 2 additions & 0 deletions lib/Dist/Zilla/Plugin/GithubMeta.pm
Expand Up @@ -10,6 +10,7 @@ with 'Dist::Zilla::Role::MetaProvider';
use MooseX::Types::URI qw[Uri];
use Cwd;
use Try::Tiny;
use File::pushd 'pushd';

use namespace::autoclean;

Expand Down Expand Up @@ -55,6 +56,7 @@ sub _acquire_repo_info {
require IPC::Cmd;
return unless IPC::Cmd::can_run('git');

my $wd = pushd $self->zilla->root;
{
my $gitver = `git version`;
my ($ver) = $gitver =~ m!git version ([0-9.]+(\.msysgit)?[0-9.]+)!;
Expand Down