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

pull request to Bitbucket with branch name containing '/' does not work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • None
    • None
    • None
    • SourceTree 2.5.1 on macOS 10.12.5

      Bitbucket 4.10.1 on jdk1.8.0_101, Debian Jessie, behind an Apache proxy that provides SSL offloading.

    • Severity 2 - Major

      I'm not actually sure if this is a bug in SourceTree or in Bitbucket, but since it's both Atlassian I trust this ticket will find its right place.

      When I right-click a feature/... branch in SourceTree, then click 'Create Pull Request...', check the values in the dialog and click 'Create Pull Request On Web', Bitbucket opens in my browser with this error message: "Commit 'feature%2Fmy-branch-name' does not exist in repository 'MyRepo'" (with the correct branch name and repository name, but with the '/' replaced by '%2F').

      The url SourceTree seems to have used to get there is this: https://bitbucket.example.com/projects/mr/repos/myrepo/pull-requests?create&sourceBranch=feature%252Fmy-branch-name

      Note the '%252F' in that url, seems like a case of double url encoding in SourceTree where only single url decoding is applied by Bitbucket. If I change the url to https://bitbucket.example.com/projects/mr/repos/myrepo/pull-requests?create&sourceBranch=feature%2Fmy-branch-name the feature works correctly.

              Unassigned Unassigned
              602f55ce-b5a5-4156-b296-86f3daf0eed9 Deleted Account (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: