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
Tatuya Kamada
gitlab-ce
Commits
c92726e6
Commit
c92726e6
authored
Dec 11, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reordered developers seeds a bit. Now seeds faster and has valid post-receive files
parent
5d219bd5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
16 deletions
+15
-16
db/fixtures/development/002_project.rb
db/fixtures/development/002_project.rb
+11
-2
db/fixtures/development/009_source_code.rb
db/fixtures/development/009_source_code.rb
+4
-3
db/fixtures/development/010_groups.rb
db/fixtures/development/010_groups.rb
+0
-11
No files found.
db/fixtures/development/002_project.rb
View file @
c92726e6
Group
.
seed
(
:id
,
[
{
id:
100
,
name:
"Brightbox"
,
path:
'brightbox'
,
owner_id:
1
},
{
id:
101
,
name:
"KDE"
,
path:
'kde'
,
owner_id:
1
},
])
Project
.
seed
(
:id
,
[
{
id:
1
,
name:
"Underscore.js"
,
path:
"underscore"
,
owner_id:
1
,
namespace_id:
1
},
{
id:
1
,
name:
"Underscore.js"
,
path:
"underscore"
,
owner_id:
1
},
{
id:
2
,
name:
"Diaspora"
,
path:
"diaspora"
,
owner_id:
1
},
{
id:
3
,
name:
"Ruby on Rails"
,
path:
"rails"
,
owner_id:
1
}
{
id:
3
,
namespace_id:
100
,
name:
"Brightbox CLI"
,
path:
"brightbox-cli"
,
owner_id:
1
},
{
id:
4
,
namespace_id:
100
,
name:
"Puppet"
,
path:
"puppet"
,
owner_id:
1
},
{
id:
5
,
namespace_id:
101
,
name:
"kdebase"
,
path:
"kdebase"
,
owner_id:
1
},
{
id:
6
,
namespace_id:
101
,
name:
"kdelibs"
,
path:
"kdelibs"
,
owner_id:
1
},
{
id:
7
,
namespace_id:
101
,
name:
"amarok"
,
path:
"amarok"
,
owner_id:
1
},
])
db/fixtures/development/009_source_code.rb
View file @
c92726e6
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
}
"
,
]
...
...
db/fixtures/development/010_groups.rb
deleted
100644 → 0
View file @
5d219bd5
Group
.
seed
(
:id
,
[
{
id:
100
,
name:
"Gitlab"
,
path:
'gitlab'
,
owner_id:
1
},
{
id:
101
,
name:
"Rails"
,
path:
'rails'
,
owner_id:
1
},
{
id:
102
,
name:
"KDE"
,
path:
'kde'
,
owner_id:
1
}
])
Project
.
seed
(
:id
,
[
{
id:
10
,
name:
"kdebase"
,
path:
"kdebase"
,
owner_id:
1
,
namespace_id:
102
},
{
id:
11
,
name:
"kdelibs"
,
path:
"kdelibs"
,
owner_id:
1
,
namespace_id:
102
},
{
id:
12
,
name:
"amarok"
,
path:
"amarok"
,
owner_id:
1
,
namespace_id:
102
}
])
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