summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngus MacArthur <amacarthur@blackberry.com>2013-05-03 11:59:26 -0400
committerAngus MacArthur <amacarthur@blackberry.com>2013-05-03 12:13:12 -0400
commit793ab5a1abf8085b25ac389fc557958579540588 (patch)
treee94cb962abaaf3d265ad31beb8cd613662575c79
parent204bd0b0669c06793d3dad02b23fec258983bb81 (diff)
downloadgitlab-ce-793ab5a1abf8085b25ac389fc557958579540588.tar.gz
fork failing when calling initialize_dup
initialize_dup has been made private as of ruby 2.0.0. I have corrected it to call the publicly available dup method
-rw-r--r--app/contexts/projects/fork_context.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/contexts/projects/fork_context.rb b/app/contexts/projects/fork_context.rb
index f2a0684b01c..fbc67220d5d 100644
--- a/app/contexts/projects/fork_context.rb
+++ b/app/contexts/projects/fork_context.rb
@@ -7,8 +7,7 @@ module Projects
end
def execute
- project = Project.new
- project.initialize_dup(@from_project)
+ project = @from_project.dup
project.name = @from_project.name
project.path = @from_project.path
project.namespace = current_user.namespace