From f5a7aec3c014175da69fdd68ddbb6b4857fb7342 Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Mon, 20 Oct 2014 11:57:16 +0800 Subject: [PATCH] =?UTF-8?q?#1342=E9=A1=B9=E7=9B=AE--=E9=85=8D=E7=BD=AE--?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=BA=93--=E8=BF=9E=E6=8E=A5=E5=88=B0?= =?UTF-8?q?=E5=B7=B2=E6=9C=89=E7=9A=84SVN=E7=89=88=E6=9C=AC=E5=BA=93?= =?UTF-8?q?=EF=BC=9A=E8=BF=94=E5=9B=9E500=E9=94=99=E8=AF=AF=20=E8=A7=A3?= =?UTF-8?q?=E5=86=B3=E6=96=B9=E6=A1=88=EF=BC=9A=E5=8F=82=E6=95=B0=E4=BC=A0?= =?UTF-8?q?=E9=80=92=E9=94=99=E8=AF=AF=EF=BC=8C=E4=BF=AE=E6=AD=A3=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E4=BC=A0=E9=80=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/repositories_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb index c9550add3..0c1f65317 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -113,7 +113,7 @@ class RepositoriesController < ApplicationController @root_path=RepositoriesHelper::ROOT_PATH @repository_name=User.current.login.to_s+"/"+params[:repository][:identifier]+".git" @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] 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