The URL bitbucket provides is invalid in SourceTree

I can manually get the correct URL from the browser which is like this: https://bitbucket.org/pelletierscott/repo/src/master/

This is not the correct URL to use with Sourcetree or git. Instead, click on the Clone button at the top right of your repository's main page and copy that URL.