This is an automated email from the ASF dual-hosted git repository.

rubys 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 796e72e  update current.txt
796e72e is described below

commit 796e72e1f88a6139ffa9c9a9da2e4cd74ec1da13
Author: Sam Ruby <[email protected]>
AuthorDate: Wed Oct 18 11:49:27 2017 -0400

    update current.txt
---
 www/board/agenda/routes.rb | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/www/board/agenda/routes.rb b/www/board/agenda/routes.rb
index f8e4729..7647d4f 100755
--- a/www/board/agenda/routes.rb
+++ b/www/board/agenda/routes.rb
@@ -414,7 +414,13 @@ post %r{/(\d\d\d\d-\d\d-\d\d)/} do |date|
     `svn checkout --depth empty #{board} #{dir} #{auth}`
     File.write "#{dir}/#{agenda}", contents
     `svn add #{dir}/#{agenda}`
-    `svn commit #{dir}/#{agenda} --message "Post #{date} agenda" #{auth}`
+
+    `svn update #{dir}/current.txt #{auth}`
+    File.unlink "#{dir}/current.txt"
+    File.symlink "#{dir}/#{agenda}", "#{dir}/current.txt"
+
+    files = ["#{dir}/#{agenda}", "#{dir}/current.txt"]
+    `svn commit #{files.join(' ')} --message "Post #{date} agenda" #{auth}`
     Agenda.update_cache agenda, File.join(dir, agenda), contents, false
   end
 

-- 
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].

Reply via email to