Project -> update repo only on create and destroy. Fixtures Updated with namespaces. Fixed moving repo
This commit is contained in:
parent
cc52eed981
commit
70bf7f6e19
11 changed files with 45 additions and 31 deletions
|
@ -1,7 +1,7 @@
|
|||
root = Gitlab.config.git_base_path
|
||||
|
||||
projects = [
|
||||
{ path: 'underscore.git', git: 'https://github.com/documentcloud/underscore.git' },
|
||||
{ path: 'root/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' },
|
||||
]
|
||||
|
@ -13,9 +13,10 @@ projects.each do |project|
|
|||
next if File.exists?(project_path)
|
||||
|
||||
cmds = [
|
||||
"cd #{root} && sudo -u git -H git clone --bare #{project[:git]}",
|
||||
"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 chown git:git #{project_path}/hooks/post-receive"
|
||||
"sudo chown git:git -R #{project_path}",
|
||||
"sudo chmod 770 -R #{project_path}",
|
||||
]
|
||||
|
||||
cmds.each do |cmd|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue