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
Boxiang Sun
gitlab-ce
Commits
fcfc7e68
Commit
fcfc7e68
authored
Dec 26, 2018
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new line and comments
parent
c735f271
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
db/fixtures/development/24_forks.rb
db/fixtures/development/24_forks.rb
+4
-0
No files found.
db/fixtures/development/24_forks.rb
View file @
fcfc7e68
...
@@ -4,6 +4,10 @@ Sidekiq::Testing.inline! do
...
@@ -4,6 +4,10 @@ Sidekiq::Testing.inline! do
Gitlab
::
Seeder
.
quiet
do
Gitlab
::
Seeder
.
quiet
do
User
.
all
.
sample
(
10
).
each
do
|
user
|
User
.
all
.
sample
(
10
).
each
do
|
user
|
source_project
=
Project
.
public_only
.
sample
source_project
=
Project
.
public_only
.
sample
##
# 04_project.rb might not have created a public project because
# we use randomized approach (e.g. `Array#sample`).
return
unless
source_project
return
unless
source_project
fork_project
=
Projects
::
ForkService
.
new
(
source_project
,
user
,
namespace:
user
.
namespace
).
execute
fork_project
=
Projects
::
ForkService
.
new
(
source_project
,
user
,
namespace:
user
.
namespace
).
execute
...
...
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