mirror of
https://gitee.com/gitea/gitea
synced 2026-01-31 11:55:48 +08:00
Since the release struct is initialized with the current `HEAD` of the current `release.Target` the commit id has to be updated if the tag commit already exists. Otherwise the linked commit on the release page will target the current `HEAD` at release time.