Permalink
Browse files

Add a comment explaining the eager find() in Panda::Fetcher

  • Loading branch information...
1 parent d6f8a3a commit 5e862fb165a0382c1b8fefd5c1fb4d7728544a3a @tadzik committed Feb 28, 2014
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/Panda/Fetcher.pm
View
@@ -24,6 +24,8 @@ sub git-fetch($from, $to) {
}
sub local-fetch($from, $to) {
+ # We need to eagerify this, as we'll sometimes
+ # copy files to a subdirectory of $from
for eager find(dir => $from).list {
# We need to cleanup the path, because the returned elems are too.
my $d = $_.directory.substr($from.IO.path.cleanup.chars);

0 comments on commit 5e862fb

Please sign in to comment.