Uploaded image for project: 'Sourcetree for Windows'
  1. Sourcetree for Windows
  2. SRCTREEWIN-8283

Git submodules update to latest on a remote branch

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • None
    • None
    • Source tree 2.4.7.0 , using submodules update

       

       
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      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.

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

                Created:
                Updated: