Skip to content

Unstaged submodule changes in WSL #2454

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
nilay994 opened this issue Mar 12, 2025 · 2 comments
Open

Unstaged submodule changes in WSL #2454

nilay994 opened this issue Mar 12, 2025 · 2 comments

Comments

@nilay994
Copy link

Often enough, we'd want to delete / revert a submodule back to its state at checkout. The submodule change lists correctly within the unstaged commits section. However, on deleting / reverting the submodule change, it correctly confirms whether we want to discard changes in the submodule. On pressing discard, it gives a new dialog saying: error: pathspec '\wsl.localhost\Ubuntu\home\<repo>\<submodule> did not match any file(s) known to git. Would we have an idea how to fix this?

Image

Build in use: #701 (comment)
Git Instance: (Windows 11) in use: 2.47.1.windows.1

@DanPristupov
Copy link
Contributor

Would you have an idea how to fix this?

Try to open WSL terminal and run

git submodule update --init --recursive -- /home/<repo>/<submodule>

@nilay994
Copy link
Author

Thanks @DanPristupov for this and the good work with Fork.

CLI is the way I've been doing it indeed, just wanted to bring it to notice.

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

No branches or pull requests

2 participants