whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: move to using a temporary directory
Date Mon, 03 Apr 2017 18:14:36 GMT
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  220faa8   move to using a temporary directory
220faa8 is described below

commit 220faa88b3dbee4832f64dc3037a39fe0c3d59f3
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Mon Apr 3 14:14:22 2017 -0400

    move to using a temporary directory
---
 www/secretary/public-names.cgi | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/www/secretary/public-names.cgi b/www/secretary/public-names.cgi
index 7034394..815fe30 100755
--- a/www/secretary/public-names.cgi
+++ b/www/secretary/public-names.cgi
@@ -54,9 +54,12 @@ _html do
 
     # update SVN
     unless svn_updates.empty?
-      officers = '/var/tools/secretary/foundation/officers'
-      _.system ['svn', 'cleanup', officers]
-      _.system ['svn', 'up', officers]
+      officers = Dir.mktmpdir.untaint
+      _.system ['svn', 'checkout', '--depth', 'empty',
+        (['--username', $USER, '--password', $PASSWORD] if $PASSWORD),
+        'https://svn.apache.org/repos/private/foundation/officers',
+        officers]
+      _.system ['svn', 'up', officers + '/iclas.txt']
       iclas = File.read(officers + '/iclas.txt')
 
       updates.each do |id, names|

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Mime
View raw message