SourceTree tries to enter "https", although the settings are "http". How to fix it?

I asked a question, but could not get an answer. I did everything that I was advised, but nothing works. Why does the "Git credential manager for Windows" window access an https server?

Content of .hgrc file:

[auth]
repo.prefix = http://to.my.repo
repo.username = <login>
repo.password = <pass>
repo.schemes = http

Screenshot of window:

large.png

2 answers

1 accepted

1 votes

Hi
We are in the process of rolling out a new release, Sourcetree for Windows 2.2.4.0


This upgrades the bundled version of Mercurial to 4.3.1 and a new Mercurial Credential Manager for Windows.

There is a error in older versions of the Git Credential Manager for windows when using HTTP urls. This should be fixed when using the Mercurial Credential Manager.

In order to use the new authentication you will need to upgrade SourceTree and then update the embedded Mercurial using the option in Tools/Options/Mercurial tab and switch to using the Embedded Mercurial.

Thank you! The annoying window seemed to be missing. And even the "Push" command started working!

0 votes

This issue still happens in Source Tree 2.3.1.0

I have many Git environments so I didn't know for which project I was prompted for credentials. the dialog keeps prompting for some credentials and will keep doing so until the correct ones are specified. 

To eliminate guesswork here is a hacky solution to find out for which process the credentials are being asked for (not sure if better solution exists): 

1) Install Process Explorer 

2) View the list of processes in tree mode. 

3) Look at the command line of the original Git process - this will show the https URL for which the credential is prompted. 

Suggest an answer

Log in or Join to answer
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

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

246 views 0 3
Read article

Atlassian User Groups

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!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot