Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Pass credentials correctly when username is provided in the git URL #1065

Merged
merged 7 commits into from
Jul 31, 2017

Conversation

smashwilson
Copy link
Contributor

It turns out that CredentialsDialog was calling its submit callback with {username: '', password: 'whatever'} when includeUsername was false, which was causing our credential handler to stomp out the username that was provided originally.

I've added some tests that catch this case, and omitted the username key from the result object if includeUsername is true.

Fixes #941.

@smashwilson smashwilson merged commit 5b7c695 into master Jul 31, 2017
@smashwilson smashwilson deleted the aw-username-in-url branch July 31, 2017 14:18
BinaryMuse pushed a commit that referenced this pull request Aug 1, 2017
Pass credentials correctly when username is provided in the git URL
(cherry picked from commit 5b7c695)
@BinaryMuse BinaryMuse mentioned this pull request Aug 1, 2017
25 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant