You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2020/06/13 11:00:34 UTC

[whimsy] branch master updated: Use library method and avoid chdir

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 58cb36a  Use library method and avoid chdir
58cb36a is described below

commit 58cb36ac73eb00ba3fb606e295e263bf2e36664b
Author: Sebb <se...@apache.org>
AuthorDate: Sat Jun 13 11:59:23 2020 +0100

    Use library method and avoid chdir
---
 www/board/agenda/views/actions/publish.json.rb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/www/board/agenda/views/actions/publish.json.rb b/www/board/agenda/views/actions/publish.json.rb
index 2b31e8b..08b81be 100755
--- a/www/board/agenda/views/actions/publish.json.rb
+++ b/www/board/agenda/views/actions/publish.json.rb
@@ -11,8 +11,9 @@ BOARD_PRIVATE = ASF::SVN['foundation_board']
 CALENDAR = File.join(BOARD_SITE, 'calendar.mdtext')
 
 # update from svn
-[MINUTES, BOARD_SITE, BOARD_PRIVATE].each do |dir| 
-  Dir.chdir(dir) {`svn cleanup`; `svn up`}
+[MINUTES, BOARD_SITE, BOARD_PRIVATE].each do |dir|
+  ASF::SVN.svn('cleanup', dir)
+  ASF::SVN.svn('update', dir) # TODO: does this need auth?
 end
 
 calendar = File.read(CALENDAR)