Some sections of `ResolveRevision()` do not check for `git.ErrReferenceNotFound`
In multiple sections of the code, we are using ResolveRevision
and returning a gRPC error. Ideally, we should send the relevant error based on the error value. i.e. checking if the error is git.ErrReferenceNotFound
or not. This would ensure the clients know whether to retry.