diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-01-13 05:34:23 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-01-13 05:34:23 +0300 |
commit | a43fd5ce6d369c35b3ea421f045721d20f1c8ada (patch) | |
tree | fbeb1e337fffc4e9cd708114546245eaed551cf1 /lib/tasks/gitlab/task_helpers.rake | |
parent | 1813adcdeaef1f27c17dfb98ecf07c57d7687e11 (diff) |
Disable colorization if STDOUT is not a tty
Diffstat (limited to 'lib/tasks/gitlab/task_helpers.rake')
-rw-r--r-- | lib/tasks/gitlab/task_helpers.rake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/tasks/gitlab/task_helpers.rake b/lib/tasks/gitlab/task_helpers.rake index ebe516ec879..8c63877e51c 100644 --- a/lib/tasks/gitlab/task_helpers.rake +++ b/lib/tasks/gitlab/task_helpers.rake @@ -2,6 +2,8 @@ module Gitlab class TaskAbortedByUserError < StandardError; end end +String.disable_colorization = true unless STDOUT.isatty + namespace :gitlab do # Ask if the user wants to continue |