Skip to content

Create wiki repo if missing during HTTP clone

Jacob Vosmaer requested to merge fix-http-wiki-clone into master

What does this MR do?

Older GitLab installations can contain projects that have the wiki feature enabled, yet do not have a wiki repository on disk.

These repositories are causing a flood of 'Not Found' errors as we replicate them with Geo to a gitlab.com secondary.

This change creates an empty wiki repository for the project if it doesn't already exist. I also tried just returning a 404 but this approach seemed much easier to integrate into the existing code.

Are there points in the code the reviewer needs to double check?

Why was this MR needed?

To get crazy git clone error rates down on gitlab.com.

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes gitaly#1031 (closed)

Closes https://gitlab.com/gitlab-com/infrastructure/issues/3734

Edited by Jacob Vosmaer

Merge request reports