mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-13 14:46:05 +10:00
Refactor git follow option set
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user