summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-03-10 17:34:09 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-03-10 17:34:09 +0200
commit0aa389b4911221e0ec5730d5342a1c59f37a8015 (patch)
treea963e375156930e873923c0fd328b5fbc9acf0c2 /lib
parentea432f60326752a169d89cee9133280d7d513e65 (diff)
parenta7df646e05a53914a9e5729f76123971f43ff392 (diff)
downloadgitlab-ce-0aa389b4911221e0ec5730d5342a1c59f37a8015.tar.gz
Merge branch 'master' of github.com:gitlabhq/gitlabhq
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/gitlab/check.rake8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/tasks/gitlab/check.rake b/lib/tasks/gitlab/check.rake
index 101b06d9586..767674e1e84 100644
--- a/lib/tasks/gitlab/check.rake
+++ b/lib/tasks/gitlab/check.rake
@@ -489,7 +489,7 @@ namespace :gitlab do
"sudo -u #{gitlab_shell_ssh_user} ln -sf #{gitlab_shell_hook_file} #{project_hook_file}"
)
for_more_information(
- "#{gitlab_shell_user_home}/gitlab-shell/support/rewrite-hooks.sh"
+ "#{gitlab_shell_path}/support/rewrite-hooks.sh"
)
fix_and_rerun
next
@@ -513,7 +513,7 @@ namespace :gitlab do
end
def check_gitlab_shell_self_test
- gitlab_shell_repo_base = File.expand_path('gitlab-shell', gitlab_shell_user_home)
+ gitlab_shell_repo_base = gitlab_shell_path
check_cmd = File.expand_path('bin/check', gitlab_shell_repo_base)
puts "Running #{check_cmd}"
if system(check_cmd, chdir: gitlab_shell_repo_base)
@@ -559,8 +559,8 @@ namespace :gitlab do
# Helper methods
########################
- def gitlab_shell_user_home
- File.expand_path("~#{Gitlab.config.gitlab_shell.ssh_user}")
+ def gitlab_shell_path
+ Gitlab.config.gitlab_shell.path
end
def gitlab_shell_version