I am using SourceTree version 3.0.15. Creating pull request to master branch like that: repository->create pull request or alternatively selecting create pull request in commit options button.
This is what I get from SourceTree (show full output):
--------------------------------------------------------
git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks -c credential.helper= -c credential.helper="C:/Users/yurip/AppData/Local/ATLASS~1/SOURCE~1/GIT_EX~1/GIT-CR~1.EXE" push -v --tags --set-upstream origin master:master
Pushing to https://YuriPoddobny@bitbucket.org/YuriPoddobny/yuri_test.git
To https://bitbucket.org/YuriPoddobny/yuri_test.git
= [up to date] master -> master
updating local tracking ref 'refs/remotes/origin/master'
Everything up-to-date
Branch 'master' set up to track remote branch 'master' from 'origin'.
Completed successfully.
------------------------------------------------------------
And then pressing "Close" brings me to 404 error page with the following URL:
https://bitbucket.org//YuriPoddobny/yuri_test/pull-request/new?source=YuriPoddobny/yuri_test:bf64f0c8bd63:master
Now, checking at bitbucket I can see no pending pull requests.