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