Skip to content
Snippets Groups Projects
Commit 33a10748 authored by Akzhan's avatar Akzhan
Browse files

Fix projects page after follow

parent a45e4721
No related branches found
No related tags found
1 merge request!3601Fix projects page after follow
Loading
Loading
@@ -68,8 +68,8 @@ module Gitlab
end
 
def commits(ref, path = nil, limit = nil, offset = nil)
if path.present?
repo.log(ref, path, max_count: limit, skip: offset, follow: true)
if path
repo.log(ref, path, max_count: limit, skip: offset, follow: path.present?)
elsif limit && offset
repo.commits(ref, limit, offset)
else
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment