diff options
author | Sean Edge <asedge@gmail.com> | 2014-05-28 07:59:02 -0400 |
---|---|---|
committer | Sean Edge <asedge@gmail.com> | 2014-05-28 07:59:02 -0400 |
commit | 2d4ba2679a3bb2a26adf6c013d5d4be19ed8da94 (patch) | |
tree | 9812b47c11a4de2f208abfda78e6932d4092ee08 /app/controllers/projects/tags_controller.rb | |
parent | a8f2977c6ac969e91180d06cd3c9ceffed48fd58 (diff) | |
download | gitlab-ce-2d4ba2679a3bb2a26adf6c013d5d4be19ed8da94.tar.gz |
Update tags_controller.rb to use CreateTagService.
Diffstat (limited to 'app/controllers/projects/tags_controller.rb')
-rw-r--r-- | app/controllers/projects/tags_controller.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/app/controllers/projects/tags_controller.rb b/app/controllers/projects/tags_controller.rb index 0b99165bf62..e03a9f4d66d 100644 --- a/app/controllers/projects/tags_controller.rb +++ b/app/controllers/projects/tags_controller.rb @@ -13,11 +13,8 @@ class Projects::TagsController < Projects::ApplicationController end def create - @repository.add_tag(params[:tag_name], params[:ref]) - - if new_tag = @repository.find_tag(params[:tag_name]) - Event.create_ref_event(@project, current_user, new_tag, 'add', 'refs/tags') - end + @tag = CreateTagService.new.execute(@project, params[:tag_name], + params[:ref], current_user) redirect_to project_tags_path(@project) end |