Reordered developers seeds a bit. Now seeds faster and has valid post-receive files
This commit is contained in:
parent
5d219bd5f0
commit
c92726e6c8
3 changed files with 17 additions and 18 deletions
|
@ -1,9 +1,10 @@
|
|||
root = Gitlab.config.git_base_path
|
||||
|
||||
projects = [
|
||||
{ path: 'root/underscore.git', git: 'https://github.com/documentcloud/underscore.git' },
|
||||
{ path: 'underscore.git', git: 'https://github.com/documentcloud/underscore.git' },
|
||||
{ path: 'diaspora.git', git: 'https://github.com/diaspora/diaspora.git' },
|
||||
{ path: 'rails.git', git: 'https://github.com/rails/rails.git' },
|
||||
{ path: 'brightbox/brightbox-cli.git', git: 'https://github.com/brightbox/brightbox-cli.git' },
|
||||
{ path: 'brightbox/puppet.git', git: 'https://github.com/brightbox/puppet.git' },
|
||||
]
|
||||
|
||||
projects.each do |project|
|
||||
|
@ -14,7 +15,7 @@ projects.each do |project|
|
|||
|
||||
cmds = [
|
||||
"cd #{root} && sudo -u git -H git clone --bare #{project[:git]} ./#{project[:path]}",
|
||||
"sudo cp ./lib/hooks/post-receive #{project_path}/hooks/post-receive",
|
||||
"sudo ln -s ./lib/hooks/post-receive #{project_path}/hooks/post-receive",
|
||||
"sudo chown git:git -R #{project_path}",
|
||||
"sudo chmod 770 -R #{project_path}",
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue