diff options
author | Phil Hughes <me@iamphill.com> | 2016-02-23 13:41:03 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-02-23 13:41:03 +0000 |
commit | 01b965f6daf22eaeb511d35d3312c217cb1f2d33 (patch) | |
tree | 98e3a611d77c86821ec00a5451c7b83eabd8e362 /app/controllers | |
parent | d80205b75502ad53b4db085b0fd7fc2a1cb54b05 (diff) | |
download | gitlab-ce-01b965f6daf22eaeb511d35d3312c217cb1f2d33.tar.gz |
Correctly checks if tree view is on screen
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/projects/refs_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/refs_controller.rb b/app/controllers/projects/refs_controller.rb index 8aeff064732..00df1c9c965 100644 --- a/app/controllers/projects/refs_controller.rb +++ b/app/controllers/projects/refs_controller.rb @@ -64,7 +64,7 @@ class Projects::RefsController < Projects::ApplicationController } end - offset = (@offset + @limit) + offset = (@offset + @limit) if contents.size > offset @more_log_url = logs_file_namespace_project_ref_path(@project.namespace, @project, @ref, @path || '', offset: offset) end |