You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
git status should report when a submodule URL is out of sync #565
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!)
Activity
phil-blain commentedon Mar 2, 2020
That's a very good idea!
I guess you mean when
submodule.<name>.urlin.gitmodulesis different thansubmodule.<name>.urlin.git/configand/or fromremote.origin.urlin.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.urlin the submodule to point to their own fork, (in which casegit submodule syncwill overwrite this custom configuration, which is not very useful... I wish there was asubmodule.<name>.remoteconfiguration setting in.git/configthat would tellgit submodule syncwhich submodule remote url to update!)