RepositoryService: moved path resolution for creation to a separate method
This is a more focused version of 009b7fb9f27a (that will probably be replaced by the present changeset). Factorizing more is subject to the problem that different errors (or no error) may have to be returned in other services/methods. OTOH we can expect all creation methods to have consistent behaviour, and it's actually become more the case with Gitaly≥14.6, in which all repository creation methods return the `ALREADY_EXISTS` gRPC error (used to be a mixed of two different errors and no error before that). Also the message does not have to repeat information about the gRPC method that was actually called, since the proper response type is used (and caller-side logging will include the method anyway).
parent
d419f844
No related branches found
No related tags found
Loading
Please register or sign in to comment