Skip to content

Commit

Permalink
Merge pull request #13 from karenetheridge/topic/fix_dzil7
Browse files Browse the repository at this point in the history
Do not assume that the current directory is already the distribution root
  • Loading branch information
bingos committed May 27, 2018
2 parents 747703a + 9578a67 commit 4089e20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
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

0 comments on commit 4089e20

Please sign in to comment.