From d4cc93f0c373c1fed3770b3066ac2f86db3286ec Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Mon, 9 Sep 2019 18:24:42 +0800 Subject: [PATCH] 1 --- app/controllers/shixuns_controller.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/controllers/shixuns_controller.rb b/app/controllers/shixuns_controller.rb index 748b4c1f3..b8f5774ef 100644 --- a/app/controllers/shixuns_controller.rb +++ b/app/controllers/shixuns_controller.rb @@ -989,7 +989,12 @@ private end def find_repo_name - @repo_path = @shixun.try(:repo_path) + # 有私密版本库的参数时,需要拿私密仓库 + @repo_path = if params[:secret_repositoy] + @shixun.shixun_secret_repository&.repo_path + else + @shixun.try(:repo_path) + end @path = params[:path] end