From 91c70c5b1c60160253520a5ac6ac3eec46faf416 Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Wed, 26 Feb 2014 17:32:52 +0100 Subject: [PATCH] Use gitlab_shell.path to invoke rewrite-hooks.sh --- lib/backup/repository.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/backup/repository.rb b/lib/backup/repository.rb index 20fd5ba..552f7ea 100644 --- a/lib/backup/repository.rb +++ b/lib/backup/repository.rb @@ -72,8 +72,7 @@ module Backup 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", Gitlab.config.gitlab_shell.repos_path) + if system("#{Gitlab.config.gitlab_shell.path}/support/rewrite-hooks.sh", Gitlab.config.gitlab_shell.repos_path) puts " [DONE]".green else puts " [FAILED]".red -- libgit2 0.21.2