You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Switching to a branch displays information about missing submodule, then puts the repository in a strange state #21005
bugConfirmed bugs or reports that are very likely to be bugspriority-2Bug that affects more than a few users in a meaningful way but doesn't prevent core functions
Attempt to switch branch to origin/vic/theming-new
Wait a moment
Observe Problem 1: Message about submodules
Observe Problem 2: User is switched back to master rather than the desired branch
Observe Problem 3: Thousands of files have changed
Expected behavior: User should be on the new branch, with no local changes, if necessary submodules pulled
I can reproduce this. I think the problem is we use git checkout --recurse-submodules to check out the new branch, which updates existing submodules. In this case, that branch has a new submodule that needs to be initialized first.
Doing git checkout (without --recurse-submodules) and then running git submodule update --init --recursive seems to work fine, but we'll look into this and see if that's the right way to fix this 🤔
bugConfirmed bugs or reports that are very likely to be bugspriority-2Bug that affects more than a few users in a meaningful way but doesn't prevent core functions
Activity
sergiou87 commentedon Oct 28, 2025
Thank you for your report!!
I can reproduce this. I think the problem is we use
git checkout --recurse-submodulesto check out the new branch, which updates existing submodules. In this case, that branch has a new submodule that needs to be initialized first.Doing
git checkout(without--recurse-submodules) and then runninggit submodule update --init --recursiveseems to work fine, but we'll look into this and see if that's the right way to fix this 🤔sergiou87 commentedon Feb 19, 2026
Fixed via #21188 🎉