Skip to content

Commit

Permalink
Merge pull request #62 from FROGGS/patch-1
Browse files Browse the repository at this point in the history
cleanup path to pass use it in substr
  • Loading branch information
Tadeusz Sośnierz committed Feb 1, 2014
2 parents f80ec50 + ae6eab5 commit c00f5cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Panda/Fetcher.pm
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ sub git-fetch($from, $to) {

sub local-fetch($from, $to) {
for find(dir => $from).list {
my $d = $_.directory.substr($from.chars);
# We need to cleanup the path, because the returned elems are too.
my $d = $_.directory.substr($from.IO.path.cleanup.chars);
next if $d ~~ /^ '/'? '.git'/; # skip VCS files
my $where = "$to/$d";
mkpath $where;
Expand Down

0 comments on commit c00f5cf

Please sign in to comment.