Permalink
Browse files

Merge pull request #62 from FROGGS/patch-1

cleanup path to pass use it in substr
  • Loading branch information...
tadzik committed Feb 1, 2014
2 parents f80ec50 + ae6eab5 commit c00f5cf9763399a04a48d07f75358b923d891872
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/Panda/Fetcher.pm
View
@@ -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;

0 comments on commit c00f5cf

Please sign in to comment.