You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by Sam Ruby <ru...@apache.org> on 2016/03/03 14:26:29 UTC

[whimsy.git] [1/1] Commit 93df79e: get recursion working correctly

Commit 93df79e707076273dff3d42ca1e7521b5bbebec1:
    get recursion working correctly


Branch: refs/heads/master
Author: Sam Ruby <ru...@intertwingly.net>
Committer: Sam Ruby <ru...@intertwingly.net>
Pusher: rubys <ru...@apache.org>

------------------------------------------------------------
lib/whimsy/asf/svn.rb                                        | + -
www/status/svn.cgi                                           | + -
------------------------------------------------------------
4 changes: 2 additions, 2 deletions.
------------------------------------------------------------


diff --git a/lib/whimsy/asf/svn.rb b/lib/whimsy/asf/svn.rb
index a42170b..fe9091c 100644
--- a/lib/whimsy/asf/svn.rb
+++ b/lib/whimsy/asf/svn.rb
@@ -44,7 +44,7 @@ def self.find(name)
       # recursively try parent directory
       if name.include? '/'
         base = File.basename(name).untaint
-        result = self[File.dirname(name)]
+        result = find(File.dirname(name))
         if result and File.exist?(File.join(result, base))
           File.join(result, base)
         end
diff --git a/www/status/svn.cgi b/www/status/svn.cgi
index a420c20..80de1a8 100755
--- a/www/status/svn.cgi
+++ b/www/status/svn.cgi
@@ -31,7 +31,7 @@ _html do
 
     _tbody do
       repository[:svn].values.sort_by {|value| value['url']}.each do |svn|
-        local = ASF::SVN[svn['url']] unless svn['url'] =~ /^https?:/
+        local = ASF::SVN.find(svn['url']) unless svn['url'] =~ /^https?:/
 
         color = nil