From 2b643e07c0aeb81c0106dd7b1210780d230a5dfb Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Fri, 15 Aug 2025 21:15:31 -0700 Subject: [PATCH] Fix new file bug when sign rule is parentsigned --- services/context/repo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/context/repo.go b/services/context/repo.go index afc6de9b1666d..802978ed08e93 100644 --- a/services/context/repo.go +++ b/services/context/repo.go @@ -143,7 +143,7 @@ func PrepareCommitFormOptions(ctx *Context, doer *user_model.User, targetRepo *r wontSignReason := "" if asymkey_service.IsErrWontSign(err) { wontSignReason = string(err.(*asymkey_service.ErrWontSign).Reason) - } else if err != nil { + } else if err != nil && !errors.Is(err, util.ErrNotExist) { return nil, err }