Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

"This is not a valid source path / URL" when connecting directly from Bitbucket

Andrew McDonald
Contributor
November 11, 2013

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?

20 answers

1 accepted

140 votes
Answer accepted
Andrew McDonald
Contributor
November 13, 2013

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?

Gordon Kam
Contributor
December 11, 2013

I couldn't agree more. Specially when there is no instruction to tell you to enable it. This should be done automatically or at least the help icon should tell you to check this.

Like # people like this
marcin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 7, 2016

Thanks, in my case i had external git so I switch to 'use system git' - version of git shows up, dialog "this is not valid source path" disapear and finally i can clone repo.

Like # people like this
Nico Hunink June 5, 2018

Thank you for your reply!!
I updated both embedded stuff (Mercurial and Git) and it finally worked!! :-)

Thanks again and have a great day y'all ;-) B-)

Like vustsinovich likes this
augustbelhumeur
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 26, 2018

Does anyone have an answer for this for Mac users that don't have a "Tools" option in the menu bar?

Like # people like this
BMYOUNG
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 19, 2018

I have SourceTree 2.6.10. I got the same error message. Based on the information in this thread, I went into Options/Git/Git Version and downloaded an embedded version. This fixed the problem for me.

Like # people like this
Angela Wallace
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 13, 2019

@augustbelhumeur I'm sure you've found this by now, but for anyone else with a Mac, go to

  • Sourcetree > Preferences > Git > Git Version
  • Click "Use System Git" (via @marcin-sumologic 's response above)

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.

Like # people like this
chandrasreddy
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 21, 2019

This worked for me

Like catalin3004 likes this
Avanika Gupta
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 29, 2019

Thank you for this answer. This helped and following resolved the issue:

Tools -> Options -> Git -> Git Version -> Click on "Embedded".

Like # people like this
Breno Medeiros de Oliveira
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 9, 2020

Thank You Avanika Gupta!! 
Only the "Embedded" button solved my problem on Windows!

Like # people like this
Pratheek R
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 15, 2020

I'm on Windows, changing it to 'Embedded' did it for me. 

Ahmed_ELharidi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 16, 2020

It works for me after updating Git version.

Thanks.

15 votes
Federico Caramelli
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 17, 2014

I have solved this one on Win 7 by going to

Tools -> Options -> Mercurial -> Update Embedded Mercurial


Toms Knostenbergs
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 12, 2019

This helped! Thank you! 

8 votes
B Jagdish
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 31, 2016

We had also same issue "This is not a valid source path / URL "and it got resolved by updating the Embedded Git of Source Tree.

Steps to resolve:


Open source tree, Tools -> Options -> Click on Git Tab -> Update Embedded Git.

 

 

Deleted user September 21, 2017

Hai Jagdish , 

i was a newbieee at using the source tree and bitbucket , followed ur solution it worked perfectly fine .

thanks for the info .

Like Uday Thej Sangineedy likes this
Huy Pham
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 1, 2017

thanks you

Alan Telford
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 25, 2018

Updating Embedded Git worked for me after restarting Source Tree, thanks

camilla_camatta
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 26, 2018

Thank you so much, it worked like a charm!

michael brodigan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 11, 2019

This worked for me in Win 10. I had old version of SourceTree 1.9.13 I uninstalled this version and downloaded 3.1.2. Once I did the Update Embedded Git it worked.

Shawn Kim
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 5, 2019

Thank you! This worked perfectly, only wish I had found your answer sooner! (URL has been removed)

hongyan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 27, 2019

It works perfectly. Thank you!

Sushree Sangita Sutar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 4, 2019

After restart it worked fine for me. Thank you

Tran Huy
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 11, 2020

You totally saved my life. Many thanks !!!

Like Kyros_Tsourdinis likes this
Kyros_Tsourdinis
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 19, 2020

Thank you thank you thank you

5 votes
The-any-Key
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 15, 2017

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.

Steps
Open source tree, Tools -> Options -> Click on Git Tab -> Update Embedded Git.

sanjaybeedi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 15, 2017

Worked for me.
Thanks

pradeep.nanjundappa November 9, 2020

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.

Like Deleted user likes this
Varun.Joshi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 9, 2021

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.

Thanks.

Like Deleted user likes this
3 votes
Bamanyi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 5, 2018

For Mac users

Go to application preferences and select the Git tab. Then click reset on all three buttons for Embedded Git, Git-Flow and Git LFS and that should do the trick.

 

Screen Shot 2018-09-05 at 5.34.10 PM.png

brunosdecampos
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 8, 2021

Thanks! This worked for me! ;)

Like Deleted user likes this
2 votes
Neeta S
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 21, 2018

Tools -> option -> Network -> Check "Add proxy server configuration to Git/Mercurial". Hope this helps someone.

tunx406
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 14, 2019

thanks you. i clone successfully

Mousa Issa Alfhaily
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 30, 2019

Yeah... this worked for me! Thanks

2 votes
Eddie Kumar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 15, 2018

For me it was version conflict between the GIT Client & GIT-System-Installation , I ended up using the Embedded GIT (instead of System GIT), which resolved the issue.

 

To do so go to: Tools -> Options -> Git (tab) -> "Use Embedded Git" button.

 

HTH

Aubrey Suba
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 27, 2018

Works for me. Thanks.

Syed Asad Ali
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 19, 2018

This works for me on MAC also. Thanks.

Vu Tran LVD
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 26, 2018

For me it was the other option, using

 Tools -> Options -> Git (tab) -> "System" button.

Like elumeyer likes this
Judyll
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 5, 2019

Tools -> Options -> Git (tab) -> Embedded

and then Tools -> Options -> Git (tab) -> Update Embedded

worked for me.  Thanks a lot!

pradeep.nanjundappa November 9, 2020

I am not able to solve this error.I still get invalid source path. can anyone help me??

2 votes
romeothethird
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 28, 2017

After setting everything to Embedded Git. I was still getting the same error, to solve this, I just ran the software as admin. 

sudhan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 16, 2017

i am also having same error pls help

1 vote
Jonathan Lloyd
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 7, 2018

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.

  1. Tools > Options > Updates > Check For Updates and Update
  2. Update and Restart
  3. Tools > Options > Mercurial - Under Mercurial Version click Update Embedded, note the update to the Embedded Mercurial version number.  


Deleted user December 14, 2020

Thanks for the suggestion it helped. Also, I had to Update Embedded for Git as well.

1 vote
KieranA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 11, 2013

Hey Andrew,

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.

Cheers

Andrew McDonald
Contributor
December 11, 2013

Thanks Kieran. Filling in the error box would definitely help - users just need to be prompted to enable the embedded plugins if they've installed but not enabled them.

Benhafoune Mohammed-Tarik
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 20, 2017

you probably made a mistake in the password verify your account

0 votes
Nitin Gandge
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 8, 2022

Update Git and Mercurial versions by clicking on Embedded in Git & Mercurial Tab.(If Embedded option is enable it means it is not updated)SourceTreeIssue.png

0 votes
Gonzalo Marecos
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 8, 2021

first check if you have git installed on your computer :#

0 votes
Thomas Villadsen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 12, 2019

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.

0 votes
RonaK Bhagchandani June 26, 2019

I have face the same problem. Just check in tools->options->git tab-> select system git instead of embedded git. Then try to check http url.

0 votes
Bernard Oreva
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 7, 2018

Did Git Version - > Update Embedded, but didn't work. To make mine work, I had to do:

Tools -> Network -> Uncheck "Add proxy server configuration to Git/Mercurial". Hope this helps someone.

0 votes
Ozan Bayram September 22, 2018

I preffer System Git, so it's always up to date not having a problem like this.

0 votes
Vijaykumar Murlidhar Tanwani
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 23, 2018

Below steps I followed to fixed the issue.

 

go to -> Tools -> Options -> Network -> Security Protocol Settings -> checked Enable TLS 1.2 option.

 

and retry cloning.

0 votes
sunk818
Contributor
May 17, 2017

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. :(

0 votes
tofutim
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 20, 2013

I just got this issue checking out SourceTree for a collegue (usually just use cmd line git). Kind of an embarrassing way to start things off!

0 votes
AgentSmith
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 12, 2013

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events