Merge branch 'backup_restore_hooks_bug' into 'master'

Fix backup/restore git hooks bug
This commit is contained in:
Dmitriy Zaporozhets 2014-02-26 20:54:23 +00:00
commit b155a44ef4
1 changed files with 1 additions and 2 deletions

View File

@ -72,8 +72,7 @@ module Backup
end
print 'Put GitLab hooks in repositories dirs'.yellow
gitlab_shell_user_home = File.expand_path("~#{Gitlab.config.gitlab_shell.ssh_user}")
if system("#{gitlab_shell_user_home}/gitlab-shell/support/rewrite-hooks.sh", Gitlab.config.gitlab_shell.repos_path)
if system("#{Gitlab.config.gitlab_shell.path}/support/rewrite-hooks.sh", Gitlab.config.gitlab_shell.repos_path)
puts " [DONE]".green
else
puts " [FAILED]".red