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

RepositoryService.ObjectFormat: returning errors on missing repos

This could be important if upstream were to perform some optimization
based on it.
parent 27a7fd0e
No related branches found
No related tags found
2 merge requests!245Update MSRV to 1.73 and merge stable,!241RHGitaly implement FindTag and ObjectFormat
......@@ -226,6 +226,10 @@
def ObjectFormat(self,
request: ObjectFormatRequest,
context) -> ObjectFormatResponse:
# we have to return an error if the repository does not exist,
# to match Gitaly behaviour (caller could use this call to
# check both at once).
self.load_repo(request.repository, context)
return ObjectFormatResponse(
format=ObjectFormat.OBJECT_FORMAT_UNSPECIFIED)
......
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