diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-08-25 13:19:52 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-08-25 13:19:52 +0400 |
commit | 2e497d84380907ad61225d358024ac1805da85e1 (patch) | |
tree | 6cb421c79bedf3e92404d52b4115f6b2a9f3fb64 /app/services/projects/fork_service.rb | |
parent | 1a9b2a47a139f2e683873c5d46cea15161e35783 (diff) |
Prevent project stars duplication when fork project
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/services/projects/fork_service.rb')
-rw-r--r-- | app/services/projects/fork_service.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/services/projects/fork_service.rb b/app/services/projects/fork_service.rb index 2f1c7b18aa0..66f0a02f0af 100644 --- a/app/services/projects/fork_service.rb +++ b/app/services/projects/fork_service.rb @@ -7,7 +7,12 @@ module Projects end def execute - project = @from_project.dup + project_params = { + visibility_level: @from_project.visibility_level, + description: @from_project.description, + } + + project = Project.new(project_params) project.name = @from_project.name project.path = @from_project.path project.namespace = current_user.namespace |