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 e30526d  fix regression where subdirectories weren't returned correctly
e30526d is described below

commit e30526daa23c052473d5b5243fbd9f33aac4fe00
Author: Sam Ruby <[email protected]>
AuthorDate: Fri May 11 10:28:45 2018 -0400

    fix regression where subdirectories weren't returned correctly
---
 lib/whimsy/asf/svn.rb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/whimsy/asf/svn.rb b/lib/whimsy/asf/svn.rb
index 791f647..aaf5027 100644
--- a/lib/whimsy/asf/svn.rb
+++ b/lib/whimsy/asf/svn.rb
@@ -92,9 +92,9 @@ module ASF
       # recursively try parent directory
       if not result and name.include? '/'
         base = File.basename(name).untaint
-        result = find(File.dirname(name))
-        if result and File.exist?(File.join(result, base))
-          File.join(result, base)
+        parent = find(File.dirname(name))
+        if parent and File.exist?(File.join(parent, base))
+          result = File.join(parent, base)
         end
       end
 

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

Reply via email to