summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/backup/repository.rb9
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