-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Submodule change revert removes submodule code from disk #18063
Comments
@celguar thanks for the report. The expected behavior for discarding a submodule is to discard the changed submodule files, which was implemented a few years back (#8218). There is an open issue in #10402 tracking submodules not discarding to trash.
What questions are you referring to here? Can you share some screenshots or more information? |
Hello and thanks for the reply. I've recorded a short 2min video showing what happens in latest version And it generally makes no sense to delete submodule files from disk to Recycle Bin when I do discard changes on submodule changes in main repo. Plus breaking local repository UI in the process. After that I have to clone my submodule again from github to restore all that. As well as delete "broken" submodule repo from Github Desktop UI and add it again... Currently I'm using that method - open repository in browser, click on submodule to see what commit it has as "last"...Then I checkout the submodule manually in GitHub Desktop to that commit so that submodule is not seen as changed in main repo. Then I git pull main repo changes. But that was all (except from pulling) done by GitHub Desktop before! |
Just to be clear I understand that changed submodule files should and get removed to recycle bin, but this happens on a submodule with no unstaged changes |
Any update on that? |
The problem
In old versions if I open main repository and revert changes to submodule of that repository it would revert submodule state to the last commited submodule version, as it should. But in latest version it just removes submodule code entirely so when I go to that repo in Github Desktop it asks wierd questions thinking submodule repo is main repo and I should update its upstream...
Release version
Version 3.3.6 (x64)
Operating system
Windows 11 x64
Steps to reproduce the behavior
Log files
No response
Screenshots
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: