Project

General

Profile

Defect #5236 » subversion_adapter.rb.patch

Anthony Paul, 2010-04-06 17:54

View differences:

subversion_adapter.rb 2010-04-06 17:41:31.933377253 +0200
50 50
        def info
51 51
          cmd = "#{SVN_BIN} info --xml #{target('')}"
52 52
          cmd << credentials_string
53

  
54
req_project_id= Repository.find_by_url(url).project_id
55
req_user_id= User.current.id
56
req_result= Member.find_by_sql("SELECT id FROM members WHERE project_id=#{req_project_id} AND user_id=#{req_user_id}")
57
if not Project.find(req_project_id).is_public and req_result.length == 0
58
  return nil
59
end
60

  
53 61
          info = nil
54 62
          shellout(cmd) do |io|
55 63
            begin
......
79 87
          entries = Entries.new
80 88
          cmd = "#{SVN_BIN} list --xml #{target(URI.escape(path))}@#{identifier}"
81 89
          cmd << credentials_string
90

  
91
req_project_id= Repository.find_by_url(url).project_id
92
req_user_id= User.current.id
93
req_result= Member.find_by_sql("SELECT id FROM members WHERE project_id=#{req_project_id} AND user_id=#{req_user_id}")
94
if not Project.find(req_project_id).is_public and req_result.length == 0
95
  return nil
96
end
82 97
          shellout(cmd) do |io|
83 98
            output = io.read
84 99
            begin
......
225 240
          str = ''
226 241
          str << " --username #{shell_quote(@login)}" unless @login.blank?
227 242
          str << " --password #{shell_quote(@password)}" unless @login.blank? || @password.blank?
228
          str << " --no-auth-cache --non-interactive"
243
          str << " --no-auth-cache --non-interactive --trust-server-cert "
229 244
          str
230 245
        end
231 246
      end
(2-2/2)