You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
A colleague set up a repository on Bitbucket and invited me to join. I've never used Bitbucket before, but registered and was able to view the project pages and source.
I followed the link to download SourceTree (on Windows 7 Ultimate x64 SP1), went through the setup wizard, and installed the internal Git and Mercurial packages. Now I'm clicking the SourceTree link directly in the Bitbucket page, but SourceTree states ""This is not a valid source path / URL" in the clone repository dialogue. There is a "Details" button next to the message, which simply produces an empty dialogue box.
This also happens if I browse in the "Hosted Repositories" dialogue. How can the path be invalid, if it's directly produced by the Bitbucket website or the SourceTree browsing process? What do I do next?
Thanks for the reply. Although not strictly a version issue, the first link provided some help. When SourceTree started for the first time, I skipped setting up Git & Mercurial in the wizard. Then I reran the wizard and chose to download and install the embedded packages. But it seems installing those didn't actually enable them - in the Tools -> Options dialogue they were both disabled! Enabling Mercurial allowed the clone dialogue to correctly identify the repo.
Shouldn't they have been enabled after installing the embedded packages through the wizard?
@augustbelhumeur I'm sure you've found this by now, but for anyone else with a Mac, go to
At this point I was prompted to enter my system password twice to update my keychain password, and then this fixed the issue for me and I was able to pull code.
I had the same issue "This is not a valid source path / URL "and it got resolved by updating the Embedded Git of Source Tree. I also got an error when trying to push (third party error ... setup password and username... to many failed password attempts...) and this solved that too.
Open source tree, Tools -> Options -> Click on Git Tab -> Update Embedded Git.
I am not able to resolve this error even after clicking on update embedded.
when i click on update embedded it downloads files, exract and after that i get option to select wincred, after selecting it the problem of invalid source path comes up. in the details it shows authentication failed. I tried to login with CAPTCHA into bitbucket but it is not resolved. Please help me to solve this ASAP.
For those, who might be using Sourcetree, please go to tools --> options --> authentication, click on the initials of your name, click manage and refresh the OAuth token once.
Then try cloning the repository again.
I am just a newbie but I was able to clone a bitbucket repository like this.
I had this same issue on a Mercurial repository after a password change in Bitbucket, I tried the solutions above, but I was still having issues.
The solution for me was to first update SourceTree and then update Embedded Mercurial.
I've filed an issue on JAC here for you: https://jira.atlassian.com/browse/SRCTREEWIN-1316
The problem seems to be that neither the VCS required not being installed / utilised by SourceTree leads to a completely empty error message. We could be more helpful and say that a Git/Hg install couldn't be found with further help on how to set them up (i.e. "Would you like to set Git/Hg up now?") and take them through that process again.
In my experience a common mistake using your bitbucket email instead of the username.
This will cause sourcetree to report an invalid url, at least for basic authentication.
One should use the username registered in the bitbucket (can be found under profile)
I think that the reason for such confusion is that the bitbucket.org website, allows to use email as username, whereas the sourcetree application expects the actual username.
Try Embedded Git.
My issue was that I had cygwin installed and the path was set so that cygwin binaries would execute first. The invalid path contained `/cydrive/c/` which should tell you why the invalid path occurred. Not sure if SourceTree needs to use explicit paths all throughout when it is not using Embedded Git.
I'm reluctant to use SourceTree with all the usability issues and bugs, but I must since we have Bitbucket Server as our repository. :(
Similar posts yielded various resolutions so its difficult to pinpoint at this point. I linked them hoping you will benifit from the responses.
GIT version issue: