Skip to content

Commit

Permalink
Do not assume that the current directory is already the distribution …
Browse files Browse the repository at this point in the history
…root

This assumption is no longer true with Dist::Zilla 7.000.
  • Loading branch information
karenetheridge committed May 27, 2018
1 parent 747703a commit a9a23c7
Showing 1 changed file with 2 additions and 0 deletions.
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 a9a23c7

Please sign in to comment.