diff options
author | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2018-01-24 12:09:03 +0100 |
---|---|---|
committer | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2018-01-24 12:09:03 +0100 |
commit | 3c2d2ddd825e966d8ac78117f317d6d603c430f8 (patch) | |
tree | 7818a63da3bae88a4d826f8af79b371a62f0ff77 | |
parent | e2a56af930f9f7d17a6a9b638f52007a60e4cc60 (diff) | |
download | gitlab-ce-fix-log-by-shell-limit.tar.gz |
Fix Gitlab::Git::Repository#log_by_shell limit issuefix-log-by-shell-limit
-rw-r--r-- | lib/gitlab/git/repository.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/git/repository.rb b/lib/gitlab/git/repository.rb index d666362de0d..8e10480fbb2 100644 --- a/lib/gitlab/git/repository.rb +++ b/lib/gitlab/git/repository.rb @@ -1512,7 +1512,7 @@ module Gitlab limit += offset if offset_in_ruby cmd = %W[#{Gitlab.config.git.bin_path} --git-dir=#{path} log] - cmd << "--max-count=#{limit}" + cmd << "--max-count=#{limit}" unless limit.zero? cmd << '--format=%H' cmd << "--skip=#{offset}" unless offset_in_ruby cmd << '--follow' if use_follow_flag |