Skip to content
Snippets Groups Projects
Unverified Commit 0eab2faf authored by Karthik Nayak's avatar Karthik Nayak
Browse files

ref: Handle `git.ErrReferenceAmbiguous` in `FindBranch`

The `repo.GetReference` can throw a `git.ErrReferenceAmbiguous` error
when the provided reference is ambiguous. We shouldn't treat these
errors as internal errors as they would then be counted towards the
error budget. So catch these errors and treat them as
`NewInvalidArgument` errors.
parent 33b368ee
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment