mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-22 19:16:39 +10:00
Use File.join to prevent extra slash in help message from appearing. Before:
``` Try fixing it: sudo -u git -H /opt/gitlab/embedded/service/gitlab-shell//bin/create-hooks ```
This commit is contained in:
@@ -278,7 +278,7 @@ namespace :gitlab do
|
||||
fix_and_rerun
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
def check_uploads
|
||||
print "Uploads directory setup correctly? ... "
|
||||
|
||||
@@ -488,7 +488,7 @@ namespace :gitlab do
|
||||
else
|
||||
puts "wrong or missing hooks".red
|
||||
try_fixing_it(
|
||||
sudo_gitlab("#{gitlab_shell_path}/bin/create-hooks"),
|
||||
sudo_gitlab("#{File.join(gitlab_shell_path, 'bin/create-hooks')}"),
|
||||
'Check the hooks_path in config/gitlab.yml',
|
||||
'Check your gitlab-shell installation'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user