I'm setting up Bitbucket for our team for the first time. I've created some repos and assigned team members.
When I go into SourceTree everything is great. All the team repos are listed automatically in the remote repository list under New Tab > Remote.
However, when teammates do the same, no repos are listed. I found old posts about needing to watch/follow other user's repos to get them to show in the list (which makes sense). So I had a teammate watch one of the repos in Bitbucket, but it still won't show in his remote list in SourceTree.
However, that teammate can manually enter the info and clone successfully in SourceTree, so it's not a rights issue. They have rights and are watching it, so I'm not sure why it won't show in the remote list.
As another test, I had the teammate create a private repo and give me admin rights to it. I can access the repo in Bitbucket and I started watching it, but it won't show in my remote list in SourceTree. And of course, I can manually enter the info and clone successfully.
As far as I can tell this is supposed to work. Can anyone confirm if it in fact works, and if so, how?
Note: I posted this as a discussion a month ago and only got "same problem here" reposnses. I'm hoping posting it as a question might get an actual answer.
I think I know the answer, and it has something to do with how Bitbucket permissions work (i.e. strangely).
To test this:
- Create a group within your team.
- Make sure the group is either read/write and has Can create repos checked
- Add a teammate who is unable to see the remotes
- Have teammate remove then re-add the account in SourceTree
You are correct. I changed his group to have "create repos" permission and when he deleted/re-added his account in SourceTree and it worked. Then I removed the "create repos" permission and repeated the process and he's back to no repos listed.
So thanks for that answer, but surely this is bug, right? Why would you need "create repos" rights to browse remote repos to which you have access? Especially when Bitbucket itself doesn't require that.
I really don't want every dev to be able to create repos. So I guess I have to choose between convenience of browsing remotes in SourceTree and proper security.
Any chance of this being fixed? This can't be the intended behavior, right?
Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot