fixed 删除文件失败,参数sha不匹配提示
This commit is contained in:
parent
8ca9ced360
commit
6e41605cbc
|
@ -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…
Reference in New Issue