Skip to content

fix(workflow): add --tags to git fetch for shallow-cloned repos#520

Merged
star-e merged 1 commit intococos:mainfrom
wuzhiming:fix/update-repo-shallow-clone-tags
Apr 29, 2026
Merged

fix(workflow): add --tags to git fetch for shallow-cloned repos#520
star-e merged 1 commit intococos:mainfrom
wuzhiming:fix/update-repo-shallow-clone-tags

Conversation

@wuzhiming
Copy link
Copy Markdown
Contributor

@wuzhiming wuzhiming commented Apr 29, 2026

Summary

  • Shallow-cloned repos don't fetch tags by default, causing git checkout <tag> to fail during update
  • Add --tags flag to git fetch origin to fix this

Test plan

  • Run npm run update:repos on a machine with existing shallow-cloned engine/external repos
  • Verify tag checkout succeeds after fetch

@wuzhiming wuzhiming force-pushed the fix/update-repo-shallow-clone-tags branch from df1d5a6 to b561a4d Compare April 29, 2026 05:01
@wuzhiming wuzhiming force-pushed the fix/update-repo-shallow-clone-tags branch from b561a4d to 0729ca0 Compare April 29, 2026 05:04
@wuzhiming wuzhiming changed the title fix(workflow): fetch tags in shallow clones and clean up dir on update failure fix(workflow): add --tags to git fetch for shallow-cloned repos Apr 29, 2026
@wuzhiming wuzhiming requested a review from star-e April 29, 2026 05:05
@star-e star-e merged commit 19c9973 into cocos:main Apr 29, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants