提交 ecbb8d73 编写于 作者: J Jacob Schatz

Add reference to the correct branch.

sometimes `@ref` will be `nil`.
this makes sure that the correct branch is passed in.
上级 34564296
......@@ -39,4 +39,4 @@
= render 'shared/outdated_browser'
-if defined?(@project)
:javascript
var findFileURL = '#{namespace_project_find_file_path(@project.namespace, @project, @ref)}';
\ No newline at end of file
var findFileURL = '#{namespace_project_find_file_path(@project.namespace, @project, @ref || @project.repository.root_ref)}';
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册