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
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2016-01-13 05:34:23 +0300
committerRobert Speicher <rspeicher@gmail.com>2016-01-13 05:34:23 +0300
commita43fd5ce6d369c35b3ea421f045721d20f1c8ada (patch)
treefbeb1e337fffc4e9cd708114546245eaed551cf1 /lib/tasks/gitlab/task_helpers.rake
parent1813adcdeaef1f27c17dfb98ecf07c57d7687e11 (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.rake2
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