Commit b1a8fdd84d5a7cdbdb5ef3829b59a73db0f4d2dd
Committed by
Dmitriy Zaporozhets
1 parent
615e4968
Exists in
master
and in
4 other branches
Git log follow support
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
lib/gitlab/git/repository.rb
... | ... | @@ -68,8 +68,8 @@ module Gitlab |
68 | 68 | end |
69 | 69 | |
70 | 70 | def commits(ref, path = nil, limit = nil, offset = nil) |
71 | - if path | |
72 | - repo.log(ref, path, max_count: limit, skip: offset) | |
71 | + if path.present? | |
72 | + repo.log(ref, path, max_count: limit, skip: offset, follow: true) | |
73 | 73 | elsif limit && offset |
74 | 74 | repo.commits(ref, limit, offset) |
75 | 75 | else | ... | ... |