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 09:48:05 UTC
[whimsy] branch chdir updated: Use library routine
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch chdir
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/chdir by this push:
new fa29210 Use library routine
fa29210 is described below
commit fa292105bd5a3223f8b4db29d7f07db04eff7ee8
Author: Sebb <se...@apache.org>
AuthorDate: Sat Jun 13 10:47:56 2020 +0100
Use library routine
---
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)