Skip to content
Snippets Groups Projects
Verified Commit 9f2e1f50 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Refactor git follow option set

parent 03ea0c74
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -73,9 +73,9 @@ class Repository
path: path,
limit: limit,
offset: offset,
follow: path.present?
}
 
options[:follow] = true if path.present?
commits = Gitlab::Git::Commit.where(options)
commits = Commit.decorate(commits, @project) if commits.present?
commits
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