Commit b155a44ef4c1da6faaa2a8aaadd9dfad879889e0

Authored by Dmitriy Zaporozhets
2 parents fd3ab695 91c70c5b

Merge branch 'backup_restore_hooks_bug' into 'master'

Fix backup/restore git hooks bug
Showing 1 changed file with 1 additions and 2 deletions   Show diff stats
lib/backup/repository.rb
... ... @@ -72,8 +72,7 @@ module Backup
72 72 end
73 73  
74 74 print 'Put GitLab hooks in repositories dirs'.yellow
75   - gitlab_shell_user_home = File.expand_path("~#{Gitlab.config.gitlab_shell.ssh_user}")
76   - if system("#{gitlab_shell_user_home}/gitlab-shell/support/rewrite-hooks.sh", Gitlab.config.gitlab_shell.repos_path)
  75 + if system("#{Gitlab.config.gitlab_shell.path}/support/rewrite-hooks.sh", Gitlab.config.gitlab_shell.repos_path)
77 76 puts " [DONE]".green
78 77 else
79 78 puts " [FAILED]".red
... ...