From 157465966794425bd0ed7b0482e0a935992680a3 Mon Sep 17 00:00:00 2001 From: "sylor_huang@126.com" Date: Fri, 20 Mar 2020 18:14:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95entries?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/repositories_controller.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb index e0d65a3a5..dd5ce62cc 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -15,9 +15,15 @@ class RepositoriesController < ApplicationController end def entries + Rails.logger.info("##############_________project_id_________############{@project.id}") @project.increment!(:visits) + Rails.logger.info("##############___________@repo.identifier_______############{@repo.identifier}") + Rails.logger.info("##############___________@user_______############{@user.login}") + @ref = params[:branch] || "master" @entries = Gitea::Repository::Entries::ListService.new(@user, @repo.identifier, ref:@ref).call + Rails.logger.info("##############__________@entries______############{@entries}") + @entries = @entries.sort_by{ |hash| hash['type'] } end