Skip to content

Handle 401 for the legacy api path the same way batch does - #634

Merged
rubyist merged 3 commits into
masterfrom
401legacy
Sep 8, 2015
Merged

rubyist merged 3 commits into
masterfrom
401legacy

Conversation

@rubyist

@rubyist rubyist commented Sep 4, 2015

Copy link
Copy Markdown
Contributor

Raised in #609

The legacy api path had no 401 handling, so the call would be treated as a success, allowing git push to exit cleanly. This PR handles a 401 in the legacy path the same way the batch path handles it, i.e. re-prompting for credentials.

@rubyist rubyist added the review label Sep 4, 2015
@technoweenie

Copy link
Copy Markdown
Contributor

👍

Though, I wonder if "AuthError" is too generic. 403 is an auth error too. Though, I suppose it could be a "ForbiddenError" or something.

rubyist added a commit that referenced this pull request Sep 8, 2015
Handle 401 for the legacy api path the same way batch does
@rubyist
rubyist merged commit bd1a6d7 into master Sep 8, 2015
@rubyist
rubyist deleted the 401legacy branch September 8, 2015 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants