forgejo/models/fixtures
CaiCandong 815d267c80
Fix verifyCommits error when push a new branch (#26664)
> ### 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>
2023-08-30 02:27:53 +00:00
..
access.yml
access_token.yml
action.yml
action_run.yml
action_run_job.yml
action_task.yml
attachment.yml
branch.yml Sync branches into databases (#22743) 2023-06-29 10:03:20 +00:00
collaboration.yml
comment.yml
commit_status.yml
commit_status_index.yml
deploy_key.yml
email_address.yml Fix verifyCommits error when push a new branch (#26664) 2023-08-30 02:27:53 +00:00
external_login_user.yml
follow.yml
gpg_key.yml Fix verifyCommits error when push a new branch (#26664) 2023-08-30 02:27:53 +00:00
gpg_key_import.yml
hook_task.yml
issue.yml Add commits dropdown in PR files view and allow commit by commit review (#25528) 2023-07-28 21:18:12 +02:00
issue_assignees.yml
issue_index.yml
issue_label.yml Add Organization Wide Labels (#10814) 2020-04-01 01:14:46 -03:00
issue_user.yml
issue_watch.yml
label.yml Allow to archive labels (#26478) 2023-08-14 11:56:14 +02:00
lfs_meta_object.yml
login_source.yml
milestone.yml
mirror.yml Fix bug of branches API with tests (#25578) 2023-07-01 10:52:52 +08:00
notice.yml
notification.yml
oauth2_application.yml
oauth2_authorization_code.yml
oauth2_grant.yml
org_user.yml Revert package access change from #23879 (#25707) 2023-07-09 13:00:07 +00:00
project.yml Fix incorrect oldest sort in project list (#25806) 2023-07-11 20:47:50 +02:00
project_board.yml
project_issue.yml
protected_branch.yml
public_key.yml
pull_request.yml Add commits dropdown in PR files view and allow commit by commit review (#25528) 2023-07-28 21:18:12 +02:00
reaction.yml [API] Add Reactions (#9220) 2019-12-07 17:04:19 -05:00
release.yml
renamed_branch.yml
repo_archiver.yml
repo_indexer_status.yml
repo_redirect.yml
repo_topic.yml
repo_transfer.yml
repo_unit.yml fix generated source URL on rendered files (#26364) 2023-08-08 09:04:04 +00:00
repository.yml Add commits dropdown in PR files view and allow commit by commit review (#25528) 2023-07-28 21:18:12 +02:00
review.yml Fix duplicate Reviewed-by trailers (#24796) 2023-06-09 16:34:49 +02:00
star.yml
stopwatch.yml
system_setting.yml
team.yml Revert package access change from #23879 (#25707) 2023-07-09 13:00:07 +00:00
team_repo.yml
team_unit.yml Fix access check for org-level project (#26182) 2023-07-29 14:13:24 +00:00
team_user.yml Revert package access change from #23879 (#25707) 2023-07-09 13:00:07 +00:00
topic.yml
tracked_time.yml
two_factor.yml org/members: display 2FA members states + optimize sql requests (#7621) 2019-08-02 12:06:27 -04:00
user.yml Fix verifyCommits error when push a new branch (#26664) 2023-08-30 02:27:53 +00:00
user_open_id.yml
user_redirect.yml
watch.yml
webauthn_credential.yml
webhook.yml