Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
“xxq250” 2022-08-11 09:31:49 +08:00
commit bdddd655bf
1 changed files with 1 additions and 0 deletions

View File

@ -137,6 +137,7 @@ class RepositoriesController < ApplicationController
else
@commit = Gitea::Repository::Commits::GetService.call(@owner.login, @repository.identifier, @sha, current_user&.gitea_token)
@commit_diff = Gitea::Repository::Commits::GetService.call(@owner.login, @repository.identifier, @sha, current_user&.gitea_token, {diff: true})
render_error(@commit[:message], @commit[:status]) if @commit.has_key?(:status) || @commit_diff.has_key?(:status)
end
end