Skip to content
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

Sync changed submodule remotes before pulling them #201

Merged
merged 2 commits into from
Nov 21, 2024

Conversation

devnoname120
Copy link
Contributor

@devnoname120 devnoname120 commented Nov 21, 2024

Follow-up of #200

git submodule update ignores submodule remote changes from .gitmodules for already-initialized submodules. Remotes need to be explicitly synchronized from .gitmodules to .git/config using the git submodule sync command.

Note that removed submodules won't have their folder deleted from the working directory. They will be marked as untracked and the only way I know to get rid of them without custom logic is to run git clean -ffd which we might not want as it will also delete any untracked changes that a user might have done.

`git submodule update` ignores submodule remote changes from `.gitmodules` for already-initialized submodules. Remotes need to be explicitly synchronized from `.gitmodules` to `.git/config` using the `git submodule sync` command.
@mattmc3 mattmc3 merged commit 57a7164 into mattmc3:main Nov 21, 2024
2 checks passed
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.

2 participants