mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-10-18 08:08:31 +00:00
headIsTag := headGitRepo.IsCommitExist(baseBranch) is wrong on two counts: - it must be assigned to commitIsTag - it must check headBranch and not baseBranch this is not a bug but it certainly is confusing. Also, the logic below headBranchRef := headBranch if headIsBranch { headBranchRef = headBranch } else if headIsTag { headBranchRef = headBranch } can be simplified as: headBranchRef := headBranch Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7978 Reviewed-by: Gusted <gusted@noreply.codeberg.org> Co-authored-by: Earl Warren <contact@earl-warren.org> Co-committed-by: Earl Warren <contact@earl-warren.org> |
||
---|---|---|
.. | ||
activitypub | ||
admin | ||
misc | ||
notify | ||
org | ||
packages | ||
repo | ||
settings | ||
shared | ||
swagger | ||
user | ||
utils | ||
api.go |