mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-09 12:46:07 +10:00
Use a different name of the method to check if sanitize is enabled in check task.
This commit is contained in:
@@ -790,14 +790,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
|
||||
|
||||
Reference in New Issue
Block a user