Skip to content

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

Open
git/git
#2509

Description

@Denton-L

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

Activity

  1. phil-blain commented on Mar 2, 2020

    @phil-blain

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions