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 Implement actions artifacts (#22738) 2023-05-19 21:37:57 +08:00
action.yml
action_run.yml Implement actions artifacts (#22738) 2023-05-19 21:37:57 +08:00
action_run_job.yml Implement actions artifacts (#22738) 2023-05-19 21:37:57 +08:00
action_task.yml Implement actions artifacts (#22738) 2023-05-19 21:37:57 +08:00
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
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
release.yml fix: release page for empty or non-existing target (#24470) 2023-05-10 11:43:55 +08:00
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
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