libgit2 / libgit2/libgit2sharp
Repository.ListRemoteReferences throws confusing exception with bad creds
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 3.5k
- Forks
- 925
- PR merge metrics
- No merged PRs in 30d
Description
If I call Repository.ListRemoteReferences(string, CredentialsHandler) with a CredentialsHandler that returns invalid credentials, I get an exception with the message "this remote has never connected". It would be nice if the message indicated invalid credentials.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at Repository.ListRemoteReferences(string, CredentialsHandler) and trace how invalid credentials are handled when the callback returns them. Reproduce the call with invalid credentials and inspect the resulting exception. Done means the exception message clearly indicates invalid credentials instead of saying that the remote has never connected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, git
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100