更改:仓库无文件跳转404
This commit is contained in:
parent
299978833d
commit
df0ef313f6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue