Skip to content

Conversation

@zhanyong-wan
Copy link
Collaborator

@zhanyong-wan zhanyong-wan commented Jun 9, 2025

Git submodules don't interact well with branches. In particular, when we git checkout a branch, the submodules in the repo won't automatically update to match the new branch's status. This often leads to the submodules showing up as changed, messing up the git status.

To be safe, we should update the submodules whenever we switch branches. This PR makes git_sync_main.py do this.

@zhanyong-wan zhanyong-wan enabled auto-merge (squash) June 9, 2025 22:58
@zhanyong-wan zhanyong-wan requested a review from pgmoka June 9, 2025 22:58
@zhanyong-wan zhanyong-wan merged commit 1bd3042 into pytorch:master Jun 10, 2025
23 checks passed
@zhanyong-wan zhanyong-wan deleted the submodules branch June 10, 2025 23:28
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.

3 participants