diff options
author | Douwe Maan <douwe@gitlab.com> | 2016-02-17 17:19:20 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2016-02-17 17:19:20 +0300 |
commit | 28d42a33f3385b57660906d4ca35e96d56785d7e (patch) | |
tree | c49785511a89871c7fa0c51065f1cf0db5a68c94 /lib | |
parent | f7ee31a2c364dbc7f4dc52cb5199b8d5885b4373 (diff) | |
parent | 789aef7f26597f026859b2ddd29fab1120ce8abe (diff) |
Merge branch 'rs-issue-13469' into 'master'
Handle nil commits in Gitlab::PushDataBuilder.build
Closes #13469
See merge request !2825
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/push_data_builder.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gitlab/push_data_builder.rb b/lib/gitlab/push_data_builder.rb index 1dad621aa00..da1c15fef61 100644 --- a/lib/gitlab/push_data_builder.rb +++ b/lib/gitlab/push_data_builder.rb @@ -22,6 +22,8 @@ module Gitlab # } # def build(project, user, oldrev, newrev, ref, commits = [], message = nil) + commits = Array(commits) + # Total commits count commits_count = commits.size |