OSDN Git Service
(root)
/
wvm
/
gitlab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d92aa6
)
Replace hardcoded '/home/git/repositories/' with GIT_HOST['base_path']
author
Denis Peplin
<denis.peplin@gmail.com>
Mon, 25 Jun 2012 04:54:02 +0000
(08:54 +0400)
committer
Denis Peplin
<denis.peplin@gmail.com>
Mon, 25 Jun 2012 04:54:02 +0000
(08:54 +0400)
lib/tasks/gitlab/status.rake
patch
|
blob
|
history
diff --git
a/lib/tasks/gitlab/status.rake
b/lib/tasks/gitlab/status.rake
index
0393e7f
..
a02aef7
100644
(file)
--- 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