Skip to content

Commit

Permalink
use absolute path for GatherDir.root
Browse files Browse the repository at this point in the history
This makes it possible to perform a build without changing into the root
directory first.
  • Loading branch information
karenetheridge committed Feb 1, 2015
1 parent c5ee828 commit a5a2f8b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Dist/Zilla/Plugin/GatherDir.pm
Expand Up @@ -170,6 +170,7 @@ sub gather_files {
my $repo_root = $self->zilla->root;
my $root = "" . $self->root;
$root =~ s{^~([\\/])}{require File::HomeDir; File::HomeDir::->my_home . $1}e;
$root = path($root)->relative($repo_root) if path($root)->is_relative;

my $prune_regex = qr/\000/;
$prune_regex = qr/$prune_regex|$_/
Expand Down

0 comments on commit a5a2f8b

Please sign in to comment.