Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2016-04-29 02:48:37 +0300
committerStan Hu <stanhu@gmail.com>2016-05-04 21:59:12 +0300
commit525e05b6536123a3117b5ff53fd46a96382d5f9d (patch)
tree1d7c7e53aa49f1e387427f5ef68522c028c41046 /app/services/git_tag_push_service.rb
parent585f5cfa3359496733b5bd344ae89f98b5578865 (diff)
Expire repository exists? and has_visible_content? caches after a push if necessary
Closes #17012
Diffstat (limited to 'app/services/git_tag_push_service.rb')
-rw-r--r--app/services/git_tag_push_service.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/services/git_tag_push_service.rb b/app/services/git_tag_push_service.rb
index 64271d8bc5c..7410442609d 100644
--- a/app/services/git_tag_push_service.rb
+++ b/app/services/git_tag_push_service.rb
@@ -2,6 +2,7 @@ class GitTagPushService < BaseService
attr_accessor :push_data
def execute
+ project.repository.after_create if project.empty_repo?
project.repository.before_push_tag
@push_data = build_push_data