Browse Source

fixed

pull/347/head
yystopf 1 year ago
parent
commit
ca3db4c724
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/repositories_controller.rb

+ 1
- 1
app/controllers/repositories_controller.rb View File

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


Loading…
Cancel
Save