summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorTony Chu <cwq1913@163.com>2015-12-11 21:47:57 +0800
committerRémy Coutable <remy@rymai.me>2016-02-08 12:15:42 +0100
commitb62cdc3c479365b2c96400c44b5e31eeb3d0c204 (patch)
tree0133b3a276d96deac3227999dee27221aea1c4db /app/models
parentbce482a59a235edf1607dab73dff88aba4300012 (diff)
downloadgitlab-ce-b62cdc3c479365b2c96400c44b5e31eeb3d0c204.tar.gz
Actually use the `skip_merges` option in Repository#commitscwq1913/gitlab-ce-fix_skip_merge_commits
Diffstat (limited to 'app/models')
-rw-r--r--app/models/repository.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb
index e813c946bc1..a5b8f556a58 100644
--- a/app/models/repository.rb
+++ b/app/models/repository.rb
@@ -78,7 +78,8 @@ class Repository
offset: offset,
# --follow doesn't play well with --skip. See:
# https://gitlab.com/gitlab-org/gitlab-ce/issues/3574#note_3040520
- follow: false
+ follow: false,
+ skip_merges: skip_merges
}
commits = Gitlab::Git::Commit.where(options)