mirror of https://github.com/go-gitea/gitea.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
815d267c80
> ### Description > If a new branch is pushed, and the repository has a rule that would require signed commits for the new branch, the commit is rejected with a 500 error regardless of whether it's signed. > > When pushing a new branch, the "old" commit is the empty ID (0000000000000000000000000000000000000000). verifyCommits has no provision for this and passes an invalid commit range to git rev-list. Prior to 1.19 this wasn't an issue because only pre-existing individual branches could be protected. > > I was able to reproduce with [try.gitea.io/CraigTest/test](https://try.gitea.io/CraigTest/test), which is set up with a blanket rule to require commits on all branches. Fix #25565 Very thanks to @Craig-Holmquist-NTI for reporting the bug and suggesting an valid solution! --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> |
1 year ago | |
---|---|---|
.. | ||
tests/repos | 1 year ago | |
actions.go | 2 years ago | |
default_branch.go | 2 years ago | |
hook_post_receive.go | 2 years ago | |
hook_pre_receive.go | 2 years ago | |
hook_proc_receive.go | 2 years ago | |
hook_verification.go | 1 year ago | |
hook_verification_test.go | 1 year ago | |
internal.go | 2 years ago | |
internal_repo.go | 2 years ago | |
key.go | 2 years ago | |
mail.go | 2 years ago | |
main_test.go | 1 year ago | |
manager.go | 2 years ago | |
manager_process.go | 2 years ago | |
manager_unix.go | 2 years ago | |
manager_windows.go | 2 years ago | |
restore_repo.go | 2 years ago | |
serv.go | 2 years ago | |
ssh_log.go | 2 years ago |