Commit afc3c216c47d06c6859cac582f1f017ff69203ab
Exists in
master
and in
4 other branches
Merge pull request #3829 from amacarthur/ruby2-fork-fix
fork failing when calling initialize_dup
Showing
1 changed file
with
1 additions
and
2 deletions
Show diff stats
app/contexts/projects/fork_context.rb
| ... | ... | @@ -7,8 +7,7 @@ module Projects |
| 7 | 7 | end |
| 8 | 8 | |
| 9 | 9 | def execute |
| 10 | - project = Project.new | |
| 11 | - project.initialize_dup(@from_project) | |
| 10 | + project = @from_project.dup | |
| 12 | 11 | project.name = @from_project.name |
| 13 | 12 | project.path = @from_project.path |
| 14 | 13 | project.namespace = current_user.namespace | ... | ... |