Commit 6048910a authored by Robert Speicher's avatar Robert Speicher

Prevent a 500 when a repository's root_ref is nil

Closes #14259
parent d1fd2cb8
......@@ -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