From 4853fc6542b6202b07723241e9712e13342cd108 Mon Sep 17 00:00:00 2001 From: AjitSingh Date: Tue, 28 Mar 2017 19:14:00 +0530 Subject: [PATCH] Fixing logic of fetching commits in parallel --- lib/pairing_matrix/github_commit_reader.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pairing_matrix/github_commit_reader.rb b/lib/pairing_matrix/github_commit_reader.rb index e4b0ccd..b13acb8 100644 --- a/lib/pairing_matrix/github_commit_reader.rb +++ b/lib/pairing_matrix/github_commit_reader.rb @@ -15,11 +15,11 @@ def read(since) together do @config.github_repos.map do |repo| async do - commits += fetch_commits(repo, since) + commits << fetch_commits(repo, since) end end end - commits + commits.flatten end private