mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-13 22:59:19 +10:00
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:
@@ -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)}';
|
||||
Reference in New Issue
Block a user