summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAhmad Hassan <ahmad.hassan612@gmail.com>2018-06-21 13:56:00 +0200
committerAhmad Hassan <ahmad.hassan612@gmail.com>2018-06-21 13:56:00 +0200
commit099eb8ae407bf3cce0e01acc386055ad8151b68e (patch)
tree5393865ff6b8d1336838b607112fbc26f395eefd
parent14e35ac9b19d358d84e0cfd167f74036937285b6 (diff)
downloadgitlab-ce-restore-custom-hooks-wiki.tar.gz
Restore custom hooks for wikirestore-custom-hooks-wiki
-rw-r--r--lib/backup/repository.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/backup/repository.rb b/lib/backup/repository.rb
index 221ba52b490..50a5e340191 100644
--- a/lib/backup/repository.rb
+++ b/lib/backup/repository.rb
@@ -206,6 +206,8 @@ module Backup
progress.print " * #{wiki.full_path} ... "
begin
wiki.repository.create_from_bundle(path_to_wiki_bundle)
+ restore_custom_hooks(wiki)
+
progress.puts "[DONE]".color(:green)
rescue => e
progress.puts "[Failed] restoring #{wiki.full_path} wiki".color(:red)