changing repository URL wipes out upstream mapping for local tracking branches

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 1.3.2
    • Affects Version/s: 1.2.3
    • Component/s: General
    • None
    • Environment:

      Windows 7 SP1 (64-bit)

      If I change the URL for any remote repository (Repository -> Repository Settings: Remotes: Edit), Sourcetree wipes out information connecting my local tracking branches to any branches in that remote repository. The results appear to be equivalent to running the following set of commands:

      git remote remove origin
      git remote add origin new_URL
      

      I would have expected Sourcetree to perform the equivalent of the following:

      git remote set-url origin new_URL
      

      NOTE: For what it's worth, a closer look at the repository tells me that Sourcetree effectively wipes out all information about the remote repository's branches (.git/refs/remotes/origin is empty) when I use it to change the URL for the remote repository.

            Assignee:
            Steve Streeting (Inactive)
            Reporter:
            george thomas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: