Commit abf60c4c authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch '6-2-stable' of dev.gitlab.org:gitlab/gitlabhq

parents c4854635 a811a4fa
...@@ -7,6 +7,7 @@ class SearchContext ...@@ -7,6 +7,7 @@ class SearchContext
def execute def execute
query = params[:search] query = params[:search]
query = Shellwords.shellescape(query) if query.present?
return result unless query.present? return result unless query.present?
......
...@@ -122,7 +122,7 @@ GitLab Shell is an ssh access and repository management software developed speci ...@@ -122,7 +122,7 @@ GitLab Shell is an ssh access and repository management software developed speci
cd gitlab-shell cd gitlab-shell
# switch to right version # switch to right version
sudo -u git -H git checkout v1.7.1 sudo -u git -H git checkout v1.7.4
sudo -u git -H cp config.yml.example config.yml sudo -u git -H cp config.yml.example config.yml
......
...@@ -736,7 +736,7 @@ namespace :gitlab do ...@@ -736,7 +736,7 @@ namespace :gitlab do
end end
def check_gitlab_shell def check_gitlab_shell
required_version = Gitlab::VersionInfo.new(1, 7, 1) required_version = Gitlab::VersionInfo.new(1, 7, 4)
current_version = Gitlab::VersionInfo.parse(gitlab_shell_version) current_version = Gitlab::VersionInfo.parse(gitlab_shell_version)
print "GitLab Shell version >= #{required_version} ? ... " print "GitLab Shell version >= #{required_version} ? ... "
......
...@@ -4,11 +4,13 @@ namespace :sidekiq do ...@@ -4,11 +4,13 @@ namespace :sidekiq do
system "script/background_jobs stop" system "script/background_jobs stop"
end end
desc "GITLAB | Start sidekiq" do desc "GITLAB | Start sidekiq"
task :start do
system "script/background_jobs start" system "script/background_jobs start"
end end
desc 'GitLab | Restart sidekiq' do desc 'GitLab | Restart sidekiq'
task :restart do
system "script/background_jobs restart" system "script/background_jobs restart"
end end
......
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