forked from Gitlink/forgeplus
更改:移除去除空格函数
This commit is contained in:
parent
7759ea558c
commit
aab613ebce
|
|
@ -337,7 +337,7 @@ class RepositoriesController < ApplicationController
|
|||
# TODO 获取最新commit信息
|
||||
def project_commits
|
||||
if params[:filepath].present?
|
||||
file_path_uri = URI.parse(URI.encode(params[:filepath].to_s.strip))
|
||||
file_path_uri = URI.parse(URI.encode(params[:filepath].to_s))
|
||||
Gitea::Repository::Commits::FileListService.new(@project.owner.login, @project.identifier, file_path_uri,
|
||||
sha: get_ref, page: 1, limit: 1, token: @project&.owner&.gitea_token).call
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in New Issue