diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-10 15:11:45 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-10 15:11:45 +0300 |
commit | 1d03fa2e7f4d341f17d7ad5dcad4b1f8eda14a60 (patch) | |
tree | 6727d32f546b226e787467a5e0d8e639b858a66c /lib/backup | |
parent | d2c70b8920fbf8750c4f4e0b5d45d3846c32b9a9 (diff) | |
download | gitlab-ce-1d03fa2e7f4d341f17d7ad5dcad4b1f8eda14a60.tar.gz |
Run rewrite-hooks after repos restore
Diffstat (limited to 'lib/backup')
-rw-r--r-- | lib/backup/repository.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/backup/repository.rb b/lib/backup/repository.rb index 14e59143250..62a510f2acc 100644 --- a/lib/backup/repository.rb +++ b/lib/backup/repository.rb @@ -68,6 +68,15 @@ module Backup end end 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") + puts " [DONE]".green + else + puts " [FAILED]".red + end + end protected |