Skip to content

Handle when if project has no repository

What does this MR do?

The /api/v3/repos/:namespace/:project/branches endpoint is currently producing ~1.8k Sentry errors a day due to GitLab request branches from Gitaly for projects that have no repo #331329 (closed).

This MR handles this error by returning an empty Array response.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Related to #331329 (closed)

Edited by Luke Duncalfe

Merge request reports