"Clone repository" instructions box causes a 500 error on Geo secondaries
An URL like http://localhost:5001/root/lfs-not-hashed-renamed-again-again/wikis/git_access raises a 500 error on Geo secondaries.
It's fine on the Geo primary though.
Backtrace:
...
Rendered shared/_clone_panel.html.haml (29.4ms)
Rendered projects/wikis/git_access.html.haml within layouts/project (62.3ms)
Completed 500 Internal Server Error in 3505ms (ActiveRecord: 3.9ms | Elasticsearch: 0.0ms)
NoMethodError - undefined method `namespace' for #<ProjectWiki:0x00555fb0eefda8>:
config/application.rb:192:in `block (4 levels) in <class:Application>'
ee/app/helpers/ee/gitlab_routing_helper.rb:7:in `geo_primary_web_url'
ee/app/helpers/ee/gitlab_routing_helper.rb:15:in `geo_primary_http_url_to_repo'
app/helpers/button_helper.rb:80:in `http_clone_button'
app/views/shared/_clone_panel.html.haml:18:in `_app_views_shared__clone_panel_html_haml__2199045331752291486_46934795455880'