Skip to content
Browse files

Use eager for loop to resolve recursing into .work directory.

  • Loading branch information...
1 parent 934a4f3 commit b89cd24eec715b5ccb28589eb9bd66b5d6b47b43 @donaldh donaldh committed Feb 24, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Panda/Fetcher.pm
View
2 lib/Panda/Fetcher.pm
@@ -24,7 +24,7 @@ sub git-fetch($from, $to) {
}
sub local-fetch($from, $to) {
- for find(dir => $from).list {
+ 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);
next if $d ~~ /^ '/'? '.git'/; # skip VCS files

0 comments on commit b89cd24

Please sign in to comment.
Something went wrong with that request. Please try again.