Git submodules update to latest on a remote branch

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Unresolved
    • None
    • Component/s: None
    • Environment:
      Source tree 2.4.7.0 , using submodules update

       

       

      When doing a pull for a repo , when updating submodules the only options seen are as below .

      git -c diff.mnemonicprefix=false -c core.quotepath=false submodule update --init --recursive

      Update to include the "–remote" option as well 

      git -c diff.mnemonicprefix=false -c core.quotepath=false submodule update --init --recursive --remote

       

      This helps to pull latest from remote branch as described in the .gitmodules file.

      As of today it always updates submodules based on the commit when the submodule was linked and not on latest of a branch we need.

            Assignee:
            Unassigned
            Reporter:
            Meghana M
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: