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: Revert last change; broke build
Date Tue, 20 Oct 2020 10:14:34 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 80ec837  Revert last change; broke build
80ec837 is described below

commit 80ec837e35befe8d4de1d6718791fbf59ff8a285
Author: Sebb <sebb@apache.org>
AuthorDate: Tue Oct 20 11:14:24 2020 +0100

    Revert last change; broke build
---
 www/board/agenda/routes.rb | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/www/board/agenda/routes.rb b/www/board/agenda/routes.rb
index f44297e..319fd32 100755
--- a/www/board/agenda/routes.rb
+++ b/www/board/agenda/routes.rb
@@ -512,10 +512,12 @@ get '/text/draft/:file' do |file|
     agenda.sub('_agenda_', '_minutes_').sub('.txt', '.yml')
 
   _text do
-    if Dir['board_agenda_*.txt', base: FOUNDATION_BOARD].include?(agenda)
-      _ Minutes.draft(agenda, minutes)
-    else
-      halt 404
+    Dir.chdir(FOUNDATION_BOARD) do
+      if Dir['board_agenda_*.txt'].include?(agenda)
+        _ Minutes.draft(agenda, minutes)
+      else
+        halt 404
+      end
     end
   end
 end


Mime
View raw message