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.
8030614386
Fixes #24145 To solve the bug, I added a "computed" `TargetBehind` field to the `Release` model, which indicates the target branch of a release. This is particularly useful if the target branch was deleted in the meantime (or is empty). I also did a micro-optimization in `calReleaseNumCommitsBehind`. Instead of checking that a branch exists and then call `GetBranchCommit`, I immediately call `GetBranchCommit` and handle the `git.ErrNotExist` error. This optimization is covered by the added unit test. |
2 years ago | |
---|---|---|
.. | ||
access.yml | 2 years ago | |
access_token.yml | 6 years ago | |
action.yml | 2 years ago | |
attachment.yml | 2 years ago | |
collaboration.yml | 5 years ago | |
comment.yml | 5 years ago | |
commit_status.yml | 8 years ago | |
commit_status_index.yml | 3 years ago | |
deleted_branch.yml | 7 years ago | |
deploy_key.yml | 7 years ago | |
email_address.yml | 4 years ago | |
external_login_user.yml | 3 years ago | |
follow.yml | 2 years ago | |
gpg_key.yml | 8 years ago | |
gpg_key_import.yml | 6 years ago | |
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 | 2 years ago | |
lfs_meta_object.yml | 2 years ago | |
login_source.yml | 7 years ago | |
milestone.yml | 2 years ago | |
notice.yml | 8 years ago | |
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 | 8 years ago | |
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 | 7 years ago | |
repo_redirect.yml | 8 years ago | |
repo_topic.yml | 5 years ago | |
repo_transfer.yml | 4 years ago | |
repo_unit.yml | 2 years ago | |
repository.yml | 2 years ago | |
review.yml | 4 years ago | |
star.yml | 8 years ago | |
stopwatch.yml | 5 years ago | |
system_setting.yml | 2 years ago | |
team.yml | 2 years ago | |
team_repo.yml | 6 years ago | |
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 | 6 years ago | |
user.yml | 2 years ago | |
user_open_id.yml | 8 years ago | |
user_redirect.yml | 4 years ago | |
watch.yml | 5 years ago | |
webauthn_credential.yml | 2 years ago | |
webhook.yml | 2 years ago |