更改:仓库无文件跳转404

This commit is contained in:
yystopf 2024-01-26 16:15:14 +08:00
parent 299978833d
commit df0ef313f6
1 changed files with 1 additions and 0 deletions

View File

@ -61,6 +61,7 @@ class RepositoriesController < ApplicationController
@entries = @entries.present? ? @entries.sort_by{ |hash| hash['type'] } : []
@path = GiteaService.gitea_config[:domain]+"/#{@project.owner.login}/#{@project.identifier}/raw/branch/#{@ref}/"
end
return render_not_found if @entries.blank?
end
def top_counts