summaryrefslogtreecommitdiff
path: root/app/controllers/projects/tags_controller.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-03-10 11:51:36 +0100
committerDouwe Maan <douwe@gitlab.com>2015-03-10 13:39:31 +0100
commit383c56efa1882d9cab956de5b5b72e51691c3f0c (patch)
tree1eebe2c35351d44a9fa54f53658346f86d9566a3 /app/controllers/projects/tags_controller.rb
parente0caed91e2cd6b959f808139df7c40f3644f88fd (diff)
downloadgitlab-ce-383c56efa1882d9cab956de5b5b72e51691c3f0c.tar.gz
Use Gitlab::Git helper methods and constants as much as possible.
Diffstat (limited to 'app/controllers/projects/tags_controller.rb')
-rw-r--r--app/controllers/projects/tags_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/tags_controller.rb b/app/controllers/projects/tags_controller.rb
index 08c7ce3f37d..03fface2d2a 100644
--- a/app/controllers/projects/tags_controller.rb
+++ b/app/controllers/projects/tags_controller.rb
@@ -27,7 +27,7 @@ class Projects::TagsController < Projects::ApplicationController
tag = @repository.find_tag(params[:id])
if tag && @repository.rm_tag(tag.name)
- EventCreateService.new.push_ref(@project, current_user, tag, 'rm', 'refs/tags')
+ EventCreateService.new.push_ref(@project, current_user, tag, 'rm', Gitlab::Git::TAG_REF_PREFIX)
end
respond_to do |format|