Failing to show incoming changes on pull request (abort: authorization failed)

With my current repository configuration, I can push changes to my Bitbucket repository just fine. Userid and password is specified for "default" in my repository settings.

However, when I try to pull, "Incoming changes" result in "abort: authorization failed".

If I expand "Advanced" and select "Branch: default" my pull request completes succesfully!

But I can't see incoming changes.... how come?

1 answer

1 accepted

1 vote
Accepted answer

Are you embedding the username AND password in your remote URL? If so, you shouldn't do that, it's very insecure (SourceTree stops you doing it in fact, at least if you created the remote in SourceTree). It's possible that during a deconstruction / reconstruction of the URL that's gone wrong somewhere - it should strictly work, and I'll check that, but it's still very strongly advisable not to include the password in plain text.

If you omit the password (leave the username@ in though), SourceTree will prompt you for it and offer to store it in your keychain for future use, which is vastly more secure.

Right! I had specified <username>:<password> in my .hgrc file. Leaving out :<password> and letting SourceTree store my password in the Keychain fixed my issue :-)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 23, 2018 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

715 views 3 2
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