diff options
author | Robert Speicher <robert@gitlab.com> | 2018-01-29 21:09:09 +0000 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2018-01-29 21:09:09 +0000 |
commit | 1f309b69df3f71d988d4d31b08a1b683099a46e5 (patch) | |
tree | a2e4f382f17511c459f4865754ef9a8ec93f08c6 /lib/tasks/gitlab/shell.rake | |
parent | 7a18675c59d46da7234dd0cdf6960b527b513a80 (diff) | |
parent | 02a3f6241af193cabde303de5d1eea0e82c87cc5 (diff) | |
download | gitlab-ce-1f309b69df3f71d988d4d31b08a1b683099a46e5.tar.gz |
Merge branch '41972-make-sure-no-warnings' into 'master'
Fail static-analysis if there's output to stderr
Closes #41972
See merge request gitlab-org/gitlab-ce!16648
Diffstat (limited to 'lib/tasks/gitlab/shell.rake')
-rw-r--r-- | lib/tasks/gitlab/shell.rake | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/tasks/gitlab/shell.rake b/lib/tasks/gitlab/shell.rake index 12ae4199b69..844664b12d4 100644 --- a/lib/tasks/gitlab/shell.rake +++ b/lib/tasks/gitlab/shell.rake @@ -1,7 +1,7 @@ namespace :gitlab do namespace :shell do desc "GitLab | Install or upgrade gitlab-shell" - task :install, [:repo] => :environment do |t, args| + task :install, [:repo] => :gitlab_environment do |t, args| warn_user_is_not_gitlab default_version = Gitlab::Shell.version_required @@ -58,12 +58,12 @@ namespace :gitlab do end desc "GitLab | Setup gitlab-shell" - task setup: :environment do + task setup: :gitlab_environment do setup end desc "GitLab | Build missing projects" - task build_missing_projects: :environment do + task build_missing_projects: :gitlab_environment do Project.find_each(batch_size: 1000) do |project| path_to_repo = project.repository.path_to_repo if File.exist?(path_to_repo) @@ -80,7 +80,7 @@ namespace :gitlab do end desc 'Create or repair repository hooks symlink' - task create_hooks: :environment do + task create_hooks: :gitlab_environment do warn_user_is_not_gitlab puts 'Creating/Repairing hooks symlinks for all repositories' |