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 | |
---|---|---|
.. | ||
0b | 1 year ago | |
2b | 1 year ago | |
08 | 1 year ago | |
8b | 1 year ago | |
9c | 1 year ago | |
13 | 1 year ago | |
23 | 1 year ago | |
65 | 1 year ago | |
72 | 1 year ago | |
93 | 1 year ago | |
97 | 1 year ago | |
a9 | 1 year ago | |
ba | 1 year ago | |
bb | 1 year ago | |
cb | 1 year ago | |
d7 | 1 year ago | |
e3 | 1 year ago | |
e6 | 1 year ago | |
e8 | 1 year ago | |
info | 1 year ago | |
tmp_objdir-incoming-a21648 | 1 year ago |