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

subtree pulls drop files in the root of the parent repository

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • None
    • 1.5.1, 3.0.15
    • General, Git
    • Windows 7 x64 / SourceTree v1.5.1 / Embedded Git v1.8.3

    • Severity 2 - Major

    Description

      I'm encountering an issue where new files pulled from a subtree are being placed in the root of the repository, rather than the local relative path as specified in the Add / Link SubTree dialog.

      If I move these files to their proper location, and pull changes, the files are updated in the correct location.


      This may be related to this discussion on stackoverflow; http://stackoverflow.com/questions/1306595/git-confused-when-merging-an-update-into-my-subtree.

      From the accepted answer

      citation
      Unfortunately this is a bug (or missing feature) in the "git merge -s subtree" code. It actually guesses the subtrees that you want to merge. Usually, this magically turns out to be correct, but if your subtree contains a lot of changes (or was originally empty, or whatever), then it can fail spectacularly.
      citation

      The folder was originally empty, but subsequent pulls that contain new files still drop those new files in the root.


      The paths I have been using;

      Shared code repo is at

      \\DISCOMBOBULATOR\Repository\Visual Studio\Common\TAA Interfaces

      Main repo is at

      \\DISCOMBOBULATOR\Repository\Visual Studio\biotools

      Initial setup for Local Relative path when defining the subtree is

      \\DISCOMBOBULATOR\Repository\Visual Studio\biotools\Common\TAA Interfaces

      When when viewed after saved is recorded as

      Common\TAA Interfaces.


      More discussion at https://answers.atlassian.com/questions/282022/subtree-pull-hangs-or-pulls-into-the-wrong-folder

      Attachments

        Activity

          People

            sstreeting Steve Streeting (Inactive)
            2afe920523b7 Luc Engelen
            Votes:
            3 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: