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

Pull does an unnecessary fetch before pulling

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • 1.6.4, 1.9.2-beta-0
    • None
    • Severity 3 - Minor

      Clicking on the "Pull" button and then looking at the log shows that SourceTree does a fetch and then a pull. This results in doing a fetch twice, because:

      git pull runs git fetch with the given parameters and calls git merge to merge the retrieved branch heads into the current branch.

      source: http://git-scm.com/docs/git-pull

      The extra fetch has no benefit but does take extra time.

      This issue can be resolved by either:

      1. Removing the initial fetch and just doing a pull.
      2. Replacing the pull command with a merge. The resulting fetch + merge is exactly what pull does anyway.

              Unassigned Unassigned
              1a90e00bce83 Steve Hoelzer
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: