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

Git submodules update to latest on a remote branch

    XMLWordPrintable

Details

    • 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.

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: