Skip to content

Commit

Permalink
Merge pull request #5951 from perlpunk/no-symlinks
Browse files Browse the repository at this point in the history
Skip symlinks in enqueue_git_update_all
  • Loading branch information
mergify[bot] authored Sep 28, 2024
2 parents fbbcf84 + bb8d06e commit 90e31d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/OpenQA/Shared/Plugin/Gru.pm
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,12 @@ sub enqueue_git_update_all ($self) {
my %clones;
my $testdir = path(sharedir() . '/tests');
for my $distri ($testdir->list({dir => 1})->each) {
next unless -d $distri; # no symlinks
next if -l $distri; # no symlinks
next unless -e $distri->child('.git');
$clones{$distri} = undef;
if (-e $distri->child('products')) {
for my $product ($distri->child('products')->list({dir => 1})->each) {
next unless -d $product; # no symlinks
next if -l $product; # no symlinks
my $needle = $product->child('needles');
next unless -e $needle->child('.git');
$clones{$needle} = undef;
Expand Down

0 comments on commit 90e31d3

Please sign in to comment.