whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sam Ruby <ru...@apache.org>
Subject [whimsy.git] [1/1] Commit 93df79e: get recursion working correctly
Date Thu, 03 Mar 2016 13:26:29 GMT
Commit 93df79e707076273dff3d42ca1e7521b5bbebec1:
    get recursion working correctly


Branch: refs/heads/master
Author: Sam Ruby <rubys@intertwingly.net>
Committer: Sam Ruby <rubys@intertwingly.net>
Pusher: rubys <rubys@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
 

Mime
View raw message