mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-07-20 17:08:47 +08:00
fix
This commit is contained in:
@@ -56,7 +56,7 @@ class Gitea::Repository::Entries::CreateService < Gitea::ClientService
|
|||||||
when 403 then error("你没有权限操作!")
|
when 403 then error("你没有权限操作!")
|
||||||
when 404 then error("你操作的链接不存在!")
|
when 404 then error("你操作的链接不存在!")
|
||||||
when 422
|
when 422
|
||||||
if @body[:new_branch].include?('') || @body[:new_branch].include?('\'') || @body[:new_branch].include?('^') || @body[:new_branch].include?('*')
|
if @body[:new_branch].include?('/') || @body[:new_branch].include?('\'') || @body[:new_branch].include?('^') || @body[:new_branch].include?('*')
|
||||||
error("不合法的分支名称!")
|
error("不合法的分支名称!")
|
||||||
else
|
else
|
||||||
error("#{filepath}文件已存在,不能重复创建!")
|
error("#{filepath}文件已存在,不能重复创建!")
|
||||||
|
|||||||
Reference in New Issue
Block a user