Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
d1daeba1
Commit
d1daeba1
authored
Aug 21, 2012
by
randx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated app:status & docs with hooks. Removed write_hooks from app:setup
parent
d862ebd3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
2 deletions
+20
-2
doc/installation.md
doc/installation.md
+6
-1
lib/tasks/gitlab/setup.rake
lib/tasks/gitlab/setup.rake
+0
-1
lib/tasks/gitlab/status.rake
lib/tasks/gitlab/status.rake
+14
-0
No files found.
doc/installation.md
View file @
d1daeba1
...
...
@@ -119,7 +119,6 @@ Permissions:
sudo chmod -R g+rwX /home/git/repositories/
sudo chown -R git:git /home/git/repositories/
sudo chown gitlab:gitlab /home/git/repositories/**/hooks/post-receive
#### CHECK: Logout & login again to apply git group to your user
...
...
@@ -177,6 +176,11 @@ Permissions:
#### Setup DB
sudo -u gitlab bundle exec rake gitlab:app:setup RAILS_ENV=production
#### Setup gitlab hooks
sudo cp ./lib/hooks/post-receive /home/git/share/gitolite/hooks/common/post-receive
sudo chown git:git /home/git/share/gitolite/hooks/common/post-receive
Checking status:
...
...
@@ -196,6 +200,7 @@ Checking status:
Resolving deltas: 100% (174/174), done.
Can clone gitolite-admin?............YES
UMASK for .gitolite.rc is 0007? ............YES
/home/git/share/gitolite/hooks/common/post-receive exists? ............YES
If you got all YES - congrats! You can go to next step.
...
...
lib/tasks/gitlab/setup.rake
View file @
d1daeba1
...
...
@@ -4,7 +4,6 @@ namespace :gitlab do
task
:setup
=>
[
'db:setup'
,
'db:seed_fu'
,
'gitlab:gitolite:write_hooks'
,
'gitlab:app:enable_automerge'
]
end
...
...
lib/tasks/gitlab/status.rake
View file @
d1daeba1
...
...
@@ -56,6 +56,20 @@ namespace :gitlab do
return
end
gitolite_hooks_path
=
File
.
join
(
"/home"
,
Gitlab
.
config
.
ssh_user
,
"share"
,
"gitolite"
,
"hooks"
,
"common"
)
gitlab_hook_files
=
[
'post-receive'
]
gitlab_hook_files
.
each
do
|
file_name
|
dest
=
File
.
join
(
gitolite_hooks_path
,
file_name
)
print
"
#{
dest
}
exists? ............"
if
File
.
exists?
(
dest
)
puts
"YES"
.
green
else
puts
"NO"
.
red
return
end
end
if
Project
.
count
>
0
puts
"Validating projects repositories:"
.
yellow
Project
.
find_each
(
:batch_size
=>
100
)
do
|
project
|
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment