diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2017-03-27 21:01:03 -0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2017-03-27 21:01:03 -0300 |
commit | da97c29237f1bee8f46aa0523db19cf7becc7bdf (patch) | |
tree | b80f99d7e67f17be5b9a2d2acbe2438b3ac549b0 | |
parent | 199e2d62ebea9939e48d442c6a866d26d0aede4f (diff) | |
download | gitlab-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.rb | 1 |
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) |