Skip to content

git status should report when a submodule URL is out of sync #565

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
Denton-L opened this issue Feb 26, 2020 · 1 comment
Open

git status should report when a submodule URL is out of sync #565

Denton-L opened this issue Feb 26, 2020 · 1 comment

Comments

@Denton-L
Copy link
Member

This will prompt users to run git submodule sync to bring their URLs up to sync.

@phil-blain
Copy link

That's a very good idea!

I guess you mean when submodule.<name>.url in .gitmodules is different than submodule.<name>.url in .git/config and/or from remote.origin.url in .git/modules/<name>/config.

Although we should be careful that this is still useful in more advanced use cases, such as if the user manually changed remote.origin.url in the submodule to point to their own fork, (in which case git submodule sync will overwrite this custom configuration, which is not very useful... I wish there was a submodule.<name>.remote configuration setting in .git/config that would tell git submodule sync which submodule remote url to update!)

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