diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2016-03-08 17:38:23 +0100 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2016-03-08 18:19:40 +0100 |
commit | cb5a5ba09588af866aed595d960755bf4ced4483 (patch) | |
tree | 138d5dd36460bf07ed2665f42c8a8d9534ae821e /app/services/git_tag_push_service.rb | |
parent | 149a52b10f5d5715ad5868add8ae0d4d6389d46d (diff) | |
download | gitlab-ce-cb5a5ba09588af866aed595d960755bf4ced4483.tar.gz |
Cache & flush tag/branch counts
The methods used for this are Repository#tag_count and
Repository#branch_count which cache their output in Redis as well as
memoizing it in an instance variable. Both methods have a corresponding
methods/hooks to flush the caches at the right time.
Diffstat (limited to 'app/services/git_tag_push_service.rb')
-rw-r--r-- | app/services/git_tag_push_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/git_tag_push_service.rb b/app/services/git_tag_push_service.rb index a62c5fc4fc4..c88c7672805 100644 --- a/app/services/git_tag_push_service.rb +++ b/app/services/git_tag_push_service.rb @@ -2,7 +2,7 @@ class GitTagPushService attr_accessor :project, :user, :push_data def execute(project, user, oldrev, newrev, ref) - project.repository.before_create_tag + project.repository.before_push_tag @project, @user = project, user @push_data = build_push_data(oldrev, newrev, ref) |