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 <[email protected]>
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