Add reference to the correct branch.

sometimes `@ref` will be `nil`.
this makes sure that the correct branch is passed in.
This commit is contained in:
Jacob Schatz
2016-01-19 14:37:00 -05:00
parent 34564296d0
commit ecbb8d73eb
+1 -1
View File
@@ -39,4 +39,4 @@
= render 'shared/outdated_browser'
-if defined?(@project)
:javascript
var findFileURL = '#{namespace_project_find_file_path(@project.namespace, @project, @ref)}';
var findFileURL = '#{namespace_project_find_file_path(@project.namespace, @project, @ref || @project.repository.root_ref)}';