whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Only match regular files
Date Thu, 25 Feb 2021 23:00:22 GMT
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 1fa47ad  Only match regular files
1fa47ad is described below

commit 1fa47ad00f9c31804f4b513d25a2aa4c29ca4671
Author: Sebb <sebb@apache.org>
AuthorDate: Thu Feb 25 23:00:14 2021 +0000

    Only match regular files
---
 www/board/agenda/models/comments.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/board/agenda/models/comments.rb b/www/board/agenda/models/comments.rb
index 111f1c7..2420e7d 100644
--- a/www/board/agenda/models/comments.rb
+++ b/www/board/agenda/models/comments.rb
@@ -12,7 +12,7 @@ class HistoricalComments
 
     # select and sort agendas for meetings past the cutoff
     agendas = Dir[File.join(ASF::SVN['foundation_board'], '**', 'board_agenda_*')].
-      select {|file| File.basename(file) > cutoff}.
+      select {|file| (File.basename(file) > cutoff) && File.file?(file)}.
       sort_by {|file| File.basename(file)}
 
     # drop latest agenda


Mime
View raw message