summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2017-03-27 21:01:03 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2017-03-27 21:01:03 -0300
commitda97c29237f1bee8f46aa0523db19cf7becc7bdf (patch)
treeb80f99d7e67f17be5b9a2d2acbe2438b3ac549b0
parent199e2d62ebea9939e48d442c6a866d26d0aede4f (diff)
downloadgitlab-shell-da97c29237f1bee8f46aa0523db19cf7becc7bdf.tar.gz
Fetch repositories with --quiet option by default
This will allow us to prevent deadlocks when dealing with extremely long outputs from `git fetch`. All the pipes (stdin, stdout, and stderr) have limited buffers, and when one fills up, everything is going to stop.
-rw-r--r--lib/gitlab_projects.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gitlab_projects.rb b/lib/gitlab_projects.rb
index 505b49e..eec8a2b 100644
--- a/lib/gitlab_projects.rb
+++ b/lib/gitlab_projects.rb
@@ -207,6 +207,7 @@ class GitlabProjects
cmd = %W(git --git-dir=#{full_path} fetch #{@name})
cmd << '--prune'
cmd << '--force' if forced
+ cmd << '--quiet'
cmd << tags_option
pid = Process.spawn(*cmd)