Skip to content

Switching to a branch displays information about missing submodule, then puts the repository in a strange state #21005

@vchelaru

Description

@vchelaru

The problem

For some reason switching my branch on a particular repository is failing, then changing thousands of files which take minutes to revert.

Release version

3.5.2 (x64)

Operating system

Windows 11

Steps to reproduce the behavior

  1. Clone https://github.com/vicdotexe/Gum locally
  2. Fetch and make sure you are on master
  3. Attempt to switch branch to origin/vic/theming-new
  4. 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

Log files

2025-09-14.desktop.production.log

Screenshots

14_09.55.54.mp4

Additional context

This repository is a fork of one of my own repositories, but I have it cloned to a totally different folder so it should not interfere.

Metadata

Metadata

Assignees

Labels

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

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions