Refactor git follow option set

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets
2015-10-23 14:39:27 +02:00
parent 03ea0c74af
commit 9f2e1f504d
+1 -1
View File
@@ -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