Remote repository path error, misleading error prompt

lz7cjc June 13, 2020

Hi

I am trying to sync my local repository to remote but I get this error. My browser (firefox) is set as default in windows. I get this error when I try to view repository online or when i hit the remote button in the task bar. sourcetreerror2.png

I assume this is why my files in the online repository are really old? I need to get this project onto MacintheCloud so I can publish ios version of project so would really appreciate some help in getting this sorted.

How do i fix?

thanks

3 answers

31 votes
Leo Barreto August 10, 2020

I found this on another post.  Seems to work:

  • In Sourcetree, click on the "Settings" button, located on the top-right of the screen
  • On the window that opens, in the "Remotes" tab, select your remote and click "Edit"
  • If all the information is correct in that window (it was in my case), simply click "OK"
  • Click "OK" again to close the "Repository Settings" window

That fixed it for me. It seems to me that re-setting the URL of the repository to the same address is what does the trick. I hope it works for you as well.

Randall Eike December 8, 2020

This worked for me too.  Geez, dumb software...

Like # people like this
Phil June 8, 2021

In a similar vein, I found that I had to delete and then recreate the 'Remote repository path' settings to make the error go away (with no changes made).

ahmedjumaah September 4, 2021

worked, amazing. thanks 

Gokul Menon January 5, 2023

Cheers, That worked.

Rod Dewell January 6, 2023

I tried this and it didn't work.  Are you using the https:// URL format or git@.  I am using the git@ format for Sourcetree access, but https:// for Browser access.

Eduard Rosu March 17, 2023

worked also for me, thank you!

Like Rod Dewell likes this
Rod Dewell March 17, 2023

I'm a little surprised that this problem has festered for so many years.  It seems like it would be an easy one for Atlassian to fix.  At least, they should change the error message so it isn't so misleading.

Like Marco Ceriani likes this
Fahmi Ayadi
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 13, 2023

Worked, thank you

6 votes
Marco Ceriani November 12, 2020

When you clone a project you can choose among 2 protocols: either using git over ssh, or https. I always use git, because I can just use an ssh key and forget about passwords management.

I just tested with a project cloned with https, and the browser is opened correctly. On the other hand, when using git I get the same error as lz7cjc. Looking at the log messages I cannot believe that they are really trying to open a browser at the URL git@gitlab.com:repository/path.git without even checking how the project was configured, and if that string is a valid URL or not.

Mark Schlegel May 19, 2021

My Sourcetree still has this problem and I have the latest version (3.4.4).  Please fix this.

"Unable to open your web browser to 'git@git-server.domain.org:repo/project.git' ", it also incorrectly attributes the problem to not having a default web browser (I do have a default web browser == Firefox 78.10.1ESR)

Note I'm obscuring the actual url, but the point is that it's showing it in "git@host.domain:repository/project.git"  URL format.  I do not want to set my git clone urls to https format, I want 'git' (ssh) format.  Sourcetree should really manage a separate https repo link for the Remote button to use with the browser.

Like # people like this
0 votes
Tiago dos Santos July 4, 2022

Hello

Has this problem already been resolved?

I'm same problem.

Rod Dewell December 21, 2022

Its not really a problem but rather a misleading error message.  The solution has to do with setting the Repository Details so that when you click on the Remote Icon you will bring up a Bitbucket browser-viewer of your repository. 

The error is misleading because it suggests you haven't setup your default browser.

It should suggest that you setup a https:// url that points to your bitbucket-server.

Search this site for my recently posted fix of this problem.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events