Commit aee6dbc6 authored by Robert Speicher's avatar Robert Speicher

Merge branch 'rs-issue-14259' into 'master'

Prevent a 500 when a repository's root_ref is nil

Closes #14259

See merge request !3278
parents 7a33afb7 6048910a
......@@ -46,6 +46,8 @@
%h1.title= title
= render 'shared/outdated_browser'
- if @project && !@project.empty_repo?
- if ref = @ref || @project.repository.root_ref
:javascript
var findFileURL = "#{namespace_project_find_file_path(@project.namespace, @project, @ref || @project.repository.root_ref)}";
var findFileURL = "#{namespace_project_find_file_path(@project.namespace, @project, ref)}";
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment