Commit 602fd68d authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'rename_sanitize_in_check_task' into 'master'

Rename sanitize in check task

This is to prevent the name clash between `sanitize_helper.rb` method sanitize and the method used to check if env variable is set in rake task.

See merge request !1336
parents 55319c0a 18d9172e
No related merge requests found
......@@ -786,14 +786,14 @@ namespace :gitlab do
end
def sanitized_message(project)
if sanitize
if should_sanitize?
"#{project.namespace_id.to_s.yellow}/#{project.id.to_s.yellow} ... "
else
"#{project.name_with_namespace.yellow} ... "
end
end
def sanitize
def should_sanitize?
if ENV['SANITIZE'] == "true"
true
else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment