Giteabot
2023-09-29 18:35:11 +08:00
committed by GitHub
co-authored by yp05327 wxiaoguang delvh Lunny Xiao
parent f77b4cb4a2
commit 84ee02faa7
6 changed files with 37 additions and 8 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ func editFile(ctx *context.Context, isNewFile bool) {
if !isNewFile {
entry, err := ctx.Repo.Commit.GetTreeEntryByPath(ctx.Repo.TreePath)
if err != nil {
ctx.NotFoundOrServerError("GetTreeEntryByPath", git.IsErrNotExist, err)
HandleGitError(ctx, "Repo.Commit.GetTreeEntryByPath", err)
return
}