GitLab steht aufgrund wichtiger Wartungsarbeiten am Montag, den 8. März, zwischen 17:00 und 19:00 Uhr nicht zur Verfügung.

Refactor git follow option set

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 03ea0c74
......@@ -73,9 +73,9 @@ def commits(ref, path = nil, limit = nil, offset = nil, skip_merges = false)
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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment