Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbASF committed Mar 28, 2024
1 parent 37b3d6a commit a16b5ea
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/whimsy/asf/svn.rb
Original file line number Diff line number Diff line change
Expand Up @@ -354,11 +354,9 @@ def self._svn_build_cmd(command, path, options)
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']
Expand Down

0 comments on commit a16b5ea

Please sign in to comment.