summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/tasks/gitlab/check.rake6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/tasks/gitlab/check.rake b/lib/tasks/gitlab/check.rake
index bcd25ccbaf3..b8eb13a4fea 100644
--- a/lib/tasks/gitlab/check.rake
+++ b/lib/tasks/gitlab/check.rake
@@ -882,10 +882,8 @@ namespace :gitlab do
"doc/install/installation.md in section \"#{section}\""
end
- def sudo_gitlab(command, env = nil)
- cmd = "sudo -u #{gitlab_user} -H #{command}"
- cmd.prepend "#{env} " if env
- cmd
+ def sudo_gitlab(command)
+ "sudo -u #{gitlab_user} -H #{command}"
end
def gitlab_user