Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-10 16:11:45 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-10 16:11:45 +0400
commit1d03fa2e7f4d341f17d7ad5dcad4b1f8eda14a60 (patch)
tree6727d32f546b226e787467a5e0d8e639b858a66c /lib/backup
parentd2c70b8920fbf8750c4f4e0b5d45d3846c32b9a9 (diff)
Run rewrite-hooks after repos restore
Diffstat (limited to 'lib/backup')
-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