Repository navigation
Conversation
Contributor
|
Skipping CI for Draft Pull Request. |
Reviewer's GuideConfigurationForce-push tags to Gitee so existing remote tags are updated instead of causing the backup workflow to fail.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: re2zero The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
When a tag already exists on the Gitee remote (e.g. from a previous sync), 'git push --tags' without '--force' is rejected, causing the entire backup job to fail. Branches already use '-f'; apply the same to tags so existing tags are updated instead of rejected. Log: fix gitee tag sync conflict Influence: backup-to-gitee no longer fails when a tag already exists fix(backup): 强制推送 tag 到 gitee 以避免冲突 当 tag 已存在于 Gitee 远端(如之前同步过)时,不带 '--force' 的 'git push --tags' 会被拒绝,导致整个 backup job 失败。分支推送已使用 '-f';对 tag 做同样处理,确保已存在的 tag 被更新而非拒绝。 Log: 修复 gitee tag 同步冲突 Influence: backup-to-gitee 不再因 tag 已存在而失败
re2zero
force-pushed
the
fix/gitee-tag-force-push
branch
from
November 20, 2026 03:22
7ba0a78 to
3eed803
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题
同步到 Gitee 时,
git push --tags origin不带--force,当 tag 已存在于 Gitee 远端(如之前同步过)时会被拒绝,导致整个 backup job 失败。错误示例:
修复
将
git push --tags origin改为git push -f --tags origin,与分支推送(已有-f)保持一致,确保已存在的 tag 被更新而非拒绝。影响
所有使用此共享 workflow 的仓库(如 dde-cooperation 等)在同步到 Gitee 时不再因 tag 已存在而失败。
Summary by Sourcery
Bug Fixes: