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/06/05 16:21:24 UTC

[whimsy] 02/02: Make it local to this class

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 <se...@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