scm: cvs: code clean up adapter.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5436 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
20b33942ba
commit
d09e496a57
|
@ -68,11 +68,13 @@ module Redmine
|
|||
def initialize(url, root_url=nil, login=nil, password=nil,
|
||||
path_encoding=nil)
|
||||
@url = url
|
||||
@login = login if login && !login.empty?
|
||||
@password = (password || "") if @login
|
||||
# TODO: better Exception here (IllegalArgumentException)
|
||||
raise CommandFailed if root_url.blank?
|
||||
@root_url = root_url
|
||||
|
||||
# These are unused.
|
||||
@login = login if login && !login.empty?
|
||||
@password = (password || "") if @login
|
||||
end
|
||||
|
||||
def root_url
|
||||
|
|
Loading…
Reference in New Issue