如果想在Bitnami-Redmine通过https连接远程svn,就要按以下步骤来配置:
1、在bitnami redmine stack的命令行环境下手工运行svn,看是否能取到数据,
svn list –xml “https://[svnIP]/svn/myproject/”@HEAD –username “myname” –password “mypasswd” –no-auth-cache –non-interactive
2、如果不行,后面再加上–trust-server-cert,还是不行的话,运行下面命令让subversion信任server
svn ls –config-option config:auth:store-auth-creds=yes https://111.222.111.222:8443/svn/myproject
3、没有错误的话,打开D:/Bitnami/apps/redmine/htdocs/lib/redmine/scm/adapters/subversion_adapter.rb
修改248行,由
str = ”
str << ” –username #{shell_quote(@login)}” unless @login.blank?
str << ” –password #{shell_quote(@password)}” unless @login.blank? || @password.blank?
str << ” –no-auth-cache –non-interactive”
str
改为
str = ”
str << ” –username #{shell_quote(@login)}” unless @login.blank?
str << ” –password #{shell_quote(@password)}” unless @login.blank? || @password.blank?
str << ” –no-auth-cache –non-interactive –config-dir <%redmine所在文件夹%>“
str
重启redmine,就可以访问https的svn了。
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/191037.html