Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2016-02-17 17:19:20 +0300
committerDouwe Maan <douwe@gitlab.com>2016-02-17 17:19:20 +0300
commit28d42a33f3385b57660906d4ca35e96d56785d7e (patch)
treec49785511a89871c7fa0c51065f1cf0db5a68c94 /lib
parentf7ee31a2c364dbc7f4dc52cb5199b8d5885b4373 (diff)
parent789aef7f26597f026859b2ddd29fab1120ce8abe (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.rb2
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