#1342项目--配置--版本库--连接到已有的SVN版本库:返回500错误
解决方案:参数传递错误,修正参数传递
This commit is contained in:
parent
59333c29f3
commit
f5a7aec3c0
|
@ -113,7 +113,7 @@ class RepositoriesController < ApplicationController
|
||||||
@root_path=RepositoriesHelper::ROOT_PATH
|
@root_path=RepositoriesHelper::ROOT_PATH
|
||||||
@repository_name=User.current.login.to_s+"/"+params[:repository][:identifier]+".git"
|
@repository_name=User.current.login.to_s+"/"+params[:repository][:identifier]+".git"
|
||||||
@project_path=@root_path+"htdocs/"+@repository_name
|
@project_path=@root_path+"htdocs/"+@repository_name
|
||||||
@repository_tag=params[:repository][:upassword]
|
@repository_tag=params[:repository][:upassword] || params[:repository][:password]
|
||||||
@repo_name=User.current.login.to_s+"_"+params[:repository][:identifier]
|
@repo_name=User.current.login.to_s+"_"+params[:repository][:identifier]
|
||||||
logger.info "htpasswd -mb "+@root_path+"user.passwd "+@repo_name+": "+@repository_tag
|
logger.info "htpasswd -mb "+@root_path+"user.passwd "+@repo_name+": "+@repository_tag
|
||||||
logger.info "the value of create repository"+@root_path+": "+@repository_name+": "+@project_path+": "+@repo_name
|
logger.info "the value of create repository"+@root_path+": "+@repository_name+": "+@project_path+": "+@repo_name
|
||||||
|
|
Loading…
Reference in New Issue