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

Disable push branches drop-down in Git tab if modifying of Git/Mercurial config files is disabled in the General tab

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 2.0.5
    • 2.0.3
    • Git
    • None
    • OS X 10.10.1, JDK 1.6.0_65

      Reproduction steps:

      1. Go to SourceTree Preferences and click Git tab
      2. Change Push branches from matching to current
      3. Close preferences
      4. Click push icon
      5. Current behavior: All checked-out branches are selected
      6. Expected behavior: Just the current branch shall be selected for push
      7. Also, if you reopen preferences, the Push branches setting is set to matching instead of current

        1. preferences.png
          preferences.png
          109 kB
        2. push.png
          push.png
          41 kB

          Form Name

            [SRCTREE-2859] Disable push branches drop-down in Git tab if modifying of Git/Mercurial config files is disabled in the General tab

            lobodpav added a comment -

            Thanks! This solved my issue.

            Anyway, not sure what Push branches feature has in common with allowing SourceTree to modify Git configs. Is this a GIT feature?
            I'm asking because from user perspective, I would not expect this kind of relationship between the two settings.

            lobodpav added a comment - Thanks! This solved my issue. Anyway, not sure what Push branches feature has in common with allowing SourceTree to modify Git configs. Is this a GIT feature? I'm asking because from user perspective, I would not expect this kind of relationship between the two settings.

            KieranA added a comment -

            Hi Pavel,

            This is because in the general tab you've disabled the option to allow SourceTree to modify your Git/Mercurial configs. The bug here is that the push branches drop-down isn't disabled when this option is disabled. You shouldn't be allowed to modify that option. I'll update the title to reflect the problem accordingly - in the meantime you need to allow ST to modify your Git/Mercurial configs to do this.

            Cheers

            KieranA added a comment - Hi Pavel, This is because in the general tab you've disabled the option to allow SourceTree to modify your Git/Mercurial configs. The bug here is that the push branches drop-down isn't disabled when this option is disabled. You shouldn't be allowed to modify that option. I'll update the title to reflect the problem accordingly - in the meantime you need to allow ST to modify your Git/Mercurial configs to do this. Cheers

              Unassigned Unassigned
              f9692943be92 lobodpav
              Affected customers:
              0 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: