diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-10-23 14:39:27 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-10-23 14:39:27 +0200 |
commit | 9f2e1f504df2fa9ef7d658cbc73bbdba6f897eda (patch) | |
tree | 971cddfb240fae2d77a3edd6e93026909c8d8508 | |
parent | 03ea0c74af8bfe6600eb4a7cc04a5d6cfc677f59 (diff) | |
download | gitlab-ce-9f2e1f504df2fa9ef7d658cbc73bbdba6f897eda.tar.gz |
Refactor git follow option setgit-follow
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-rw-r--r-- | app/models/repository.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb index a517c7d6982..9d68d8a6dfd 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -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 |