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 | |
---|---|---|
.. | ||
access.yml | 2 years ago | |
access_token.yml | 2 years ago | |
action.yml | 2 years ago | |
action_run.yml | 2 years ago | |
action_run_job.yml | 2 years ago | |
action_task.yml | 2 years ago | |
attachment.yml | 2 years ago | |
branch.yml | 2 years ago | |
collaboration.yml | 5 years ago | |
comment.yml | 5 years ago | |
commit_status.yml | ||
commit_status_index.yml | 3 years ago | |
deploy_key.yml | ||
email_address.yml | 1 year ago | |
external_login_user.yml | 3 years ago | |
follow.yml | 2 years ago | |
gpg_key.yml | 1 year ago | |
gpg_key_import.yml | ||
hook_task.yml | 2 years ago | |
issue.yml | 2 years ago | |
issue_assignees.yml | 3 years ago | |
issue_index.yml | 3 years ago | |
issue_label.yml | 5 years ago | |
issue_user.yml | 4 years ago | |
issue_watch.yml | 5 years ago | |
label.yml | 1 year ago | |
lfs_meta_object.yml | 2 years ago | |
login_source.yml | ||
milestone.yml | 2 years ago | |
mirror.yml | 2 years ago | |
notice.yml | ||
notification.yml | 5 years ago | |
oauth2_application.yml | 2 years ago | |
oauth2_authorization_code.yml | 2 years ago | |
oauth2_grant.yml | 2 years ago | |
org_user.yml | 2 years ago | |
project.yml | 2 years ago | |
project_board.yml | 2 years ago | |
project_issue.yml | 5 years ago | |
protected_branch.yml | ||
public_key.yml | 5 years ago | |
pull_request.yml | 2 years ago | |
reaction.yml | 5 years ago | |
release.yml | 2 years ago | |
renamed_branch.yml | 3 years ago | |
repo_archiver.yml | 4 years ago | |
repo_indexer_status.yml | ||
repo_redirect.yml | ||
repo_topic.yml | ||
repo_transfer.yml | 4 years ago | |
repo_unit.yml | 2 years ago | |
repository.yml | 2 years ago | |
review.yml | 2 years ago | |
star.yml | ||
stopwatch.yml | 5 years ago | |
system_setting.yml | 2 years ago | |
team.yml | 2 years ago | |
team_repo.yml | ||
team_unit.yml | 2 years ago | |
team_user.yml | 2 years ago | |
topic.yml | 2 years ago | |
tracked_time.yml | 5 years ago | |
two_factor.yml | ||
user.yml | 1 year ago | |
user_open_id.yml | ||
user_redirect.yml | 4 years ago | |
watch.yml | 5 years ago | |
webauthn_credential.yml | 2 years ago | |
webhook.yml | 2 years ago |