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


The following commit(s) were added to refs/heads/master by this push:
     new a16b5ead Simplify
a16b5ead is described below

commit a16b5eadfef689a377b702746eb05e871206820a
Author: Sebb <s...@apache.org>
AuthorDate: Thu Mar 28 23:02:11 2024 +0000

    Simplify
---
 lib/whimsy/asf/svn.rb | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/lib/whimsy/asf/svn.rb b/lib/whimsy/asf/svn.rb
index dea083c8..cd030f58 100644
--- a/lib/whimsy/asf/svn.rb
+++ b/lib/whimsy/asf/svn.rb
@@ -354,11 +354,9 @@ module ASF
         cmd[0] = 'whimsysvn' # need wrapper for SVN proxy role
       end
       unless options[:dryrun] # don't add auth for dryrun
-        if password or user == 'whimsysvn' # whimsysvn user does not require 
password
-          cmd << ['--username', user, '--no-auth-cache']
-        end
         # password was supplied, add credentials
         if password
+          cmd << ['--username', user, '--no-auth-cache']
           if self.passwordStdinOK?()
             stdin = password
             cmd << ['--password-from-stdin']

Reply via email to