Skip to content

Commit 2b643e0

Browse files
committed
Fix new file bug when sign rule is parentsigned
1 parent 04017f2 commit 2b643e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/context/repo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ func PrepareCommitFormOptions(ctx *Context, doer *user_model.User, targetRepo *r
143143
wontSignReason := ""
144144
if asymkey_service.IsErrWontSign(err) {
145145
wontSignReason = string(err.(*asymkey_service.ErrWontSign).Reason)
146-
} else if err != nil {
146+
} else if err != nil && !errors.Is(err, util.ErrNotExist) {
147147
return nil, err
148148
}
149149

0 commit comments

Comments
 (0)