Browse Source

fixed 删除文件失败,参数sha不匹配提示

pull/347/head
xxq250 2 years ago
parent
commit
6e41605cbc
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/interactors/gitea/delete_file_interactor.rb

+ 1
- 0
app/interactors/gitea/delete_file_interactor.rb View File

@@ -45,6 +45,7 @@ module Gitea
else
Rails.logger.error("Gitea::Repository::Entries::DeleteService error[#{response.status}]======#{response.body}")
@error = "删除失败,请确认该分支是否是保护分支。"
@error = "删除失败,参数sha不匹配。" if response.body.to_s.include?("sha does not match")
end
end



Loading…
Cancel
Save