Skip to content
Snippets Groups Projects
Commit d7b89af6 authored by Georges Racinet's avatar Georges Racinet
Browse files

rhgitaly::repository: new repo_store_vfs function

This function provides the path to the store vfs, taking care
of performing all checks, in particular that the repository
exists.

One advantage is the collapsing of the various problems (missing
repo specfication, repo not found...) into a single `RepoSpecError`,
so that callers can simply use `map_err()` and we don't need to
take an error treatment argument. The check for `None` spares us
a conditional block in the service implementation (kept an artificial
block to have a readable diff by avoiding reindent).

This is a new, simpler pattern, we'll see to generalize it.
parent ebb08cf1
No related branches found
No related tags found
3 merge requests!186Merging stable branch into default,!177Merged oldstable branch for RHGitaly blob methods,!175RHGitaly Blob requests
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment