whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] 02/02: Make it local to this class
Date Fri, 05 Jun 2020 16:21:24 GMT
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

commit 759fcfee1c2690b3c554e6cc28e3b791a34be5f4
Author: Sebb <sebb@apache.org>
AuthorDate: Fri Jun 5 17:21:11 2020 +0100

    Make it local to this class
---
 lib/whimsy/asf/svn.rb | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/lib/whimsy/asf/svn.rb b/lib/whimsy/asf/svn.rb
index 459be5a..d88d36e 100644
--- a/lib/whimsy/asf/svn.rb
+++ b/lib/whimsy/asf/svn.rb
@@ -24,7 +24,7 @@ module ASF
       untaint
     @@repository_mtime = nil
     @@repository_entries = nil
-    @@svnHasPasswordFromStdin = nil
+    @svnHasPasswordFromStdin = nil
 
     # a hash of local working copies of Subversion repositories.  Keys are
     # subversion paths; values are file paths.
@@ -712,14 +712,14 @@ module ASF
 
     # Does this host's installation of SVN support --password-from-stdin?
     def self.passwordStdinOK?()
-      return @@svnHasPasswordFromStdin if @@svnHasPasswordFromStdin
+      return @svnHasPasswordFromStdin if @svnHasPasswordFromStdin
         out,err = self.svn('help','cat', {args: '-v'})
         if out
-          @@svnHasPasswordFromStdin = out.include? '--password-from-stdin'
+          @svnHasPasswordFromStdin = out.include? '--password-from-stdin'
         else
-          @@svnHasPasswordFromStdin = false
+          @svnHasPasswordFromStdin = false
         end
-      @@svnHasPasswordFromStdin
+      @svnHasPasswordFromStdin
     end
 
     private


Mime
View raw message