Uploaded image for project: 'Sourcetree For Mac'
  1. Sourcetree For Mac
  2. SRCTREE-1704

submodule branch tracking

    XMLWordPrintable

Details

    • 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

      Git 1.8.2 (I think) added the the ability to track specific branches in submodules, but Sourcetree only seems to partly support it.

      Specifically, when you do "Add Submodule..." I see that the command is called with the "-b" option and the branch specified (if you use the advanced settings). However, when you "Pull" from the parent repository it always executes "git submodule update --recursive --init". This will always put the submodule back to the commit stored with the parent repository. If the "--remote" argument is also supplied, it will first pull the given branch to the submodule.

      At some level this is as simple as adding "--remote" to the submodule update command, although I'm sure everyone would like the ability to set this on a per-submodule basis (so some submodules can be semi-static, referring to a specific commit unless specifically changed).

      Attachments

        Activity

          People

            Unassigned Unassigned
            22c8e958d577 Barrett Heyneman
            Votes:
            30 Vote for this issue
            Watchers:
            29 Start watching this issue

            Dates

              Created:
              Updated: