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/07/21 09:43:21 UTC

[whimsy] branch master updated: Use library so overrides work

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 5413d9c  Use library so overrides work
5413d9c is described below

commit 5413d9c59ad8e23e25430ebef337c77e8b508905
Author: Sebb <se...@apache.org>
AuthorDate: Tue Jul 21 10:43:12 2020 +0100

    Use library so overrides work
---
 www/status/svn.cgi | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/www/status/svn.cgi b/www/status/svn.cgi
index 9be7b48..6de40fe 100755
--- a/www/status/svn.cgi
+++ b/www/status/svn.cgi
@@ -42,7 +42,7 @@ _html do
     end
 
     _tbody do
-      repository.values.sort_by {|value| value['url']}.each do |svn|
+      repository.sort_by {|name, value| value['url']}.each do |name, svn|
         local = ASF::SVN.find(svn['url']) unless svn['url'] =~ /^https?:/
 
         color = nil
@@ -56,7 +56,7 @@ _html do
 
         _tr_ class: color do
           _td! title: local do
-            _a svn['url'], href: "https://svn.apache.org/repos/#{svn['url']}"
+            _a svn['url'], href: ASF::SVN.svnpath!(name)
           end
 
           _td local
@@ -170,7 +170,7 @@ _json do
 
       repository_url = @name
       unless repository_url =~ /^https?:/
-        repository_url = "https://svn.apache.org/repos/#{repository_url}"
+        repository_url = ASF::SVN.svnpath!(repository_url)
       end
 
       log = `svn checkout #{repository_url.untaint} #{local_path.untaint} 2>&1`