Commit b155a44e authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'backup_restore_hooks_bug' into 'master'

Fix backup/restore git hooks bug
parents fd3ab695 91c70c5b
...@@ -72,8 +72,7 @@ module Backup ...@@ -72,8 +72,7 @@ module Backup
end end
print 'Put GitLab hooks in repositories dirs'.yellow print 'Put GitLab hooks in repositories dirs'.yellow
gitlab_shell_user_home = File.expand_path("~#{Gitlab.config.gitlab_shell.ssh_user}") if system("#{Gitlab.config.gitlab_shell.path}/support/rewrite-hooks.sh", Gitlab.config.gitlab_shell.repos_path)
if system("#{gitlab_shell_user_home}/gitlab-shell/support/rewrite-hooks.sh", Gitlab.config.gitlab_shell.repos_path)
puts " [DONE]".green puts " [DONE]".green
else else
puts " [FAILED]".red puts " [FAILED]".red
......
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