From 4a40f65090fdb6044c106207123a80110e133f99 Mon Sep 17 00:00:00 2001
From: Denis Peplin <denis.peplin@gmail.com>
Date: Mon, 25 Jun 2012 08:54:02 +0400
Subject: [PATCH] Replace hardcoded '/home/git/repositories/' with
 GIT_HOST['base_path']

---
 lib/tasks/gitlab/status.rake | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/tasks/gitlab/status.rake b/lib/tasks/gitlab/status.rake
index 0393e7f41d1..a02aef79ed6 100644
--- a/lib/tasks/gitlab/status.rake
+++ b/lib/tasks/gitlab/status.rake
@@ -21,7 +21,7 @@ namespace :gitlab do
       end
 
       GIT_HOST = YAML.load_file("#{Rails.root}/config/gitlab.yml")["git_host"]
-      print "/home/git/repositories/............"
+      print "#{GIT_HOST['base_path']}............"
       if File.exists?(GIT_HOST['base_path'])  
         puts "exists".green 
       else 
@@ -29,7 +29,7 @@ namespace :gitlab do
         return
       end
 
-      print "/home/git/repositories/ is writable?............"
+      print "#{GIT_HOST['base_path']} is writable?............"
       if File.stat(GIT_HOST['base_path']).writable?
         puts "YES".green 
       else
-- 
2.30.9