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>2018-04-15 01:36:36 +0300
committerStan Hu <stanhu@gmail.com>2018-04-15 01:36:36 +0300
commit74e5ec198cbafe5d83690fae970ff73e5ef4cfcb (patch)
tree7f1897390cbdbb9d276311c28b36dbe04f0862a2 /app/models/repository.rb
parentb1f15dfa42fb7b8f74a439806f004eaa5ed598a8 (diff)
Fix failing ./spec/lib/backup/repository_spec.rb by clearing the memoized value
Diffstat (limited to 'app/models/repository.rb')
-rw-r--r--app/models/repository.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb
index fd1afafe4df..5bdaa7f0720 100644
--- a/app/models/repository.rb
+++ b/app/models/repository.rb
@@ -331,6 +331,7 @@ class Repository
return unless empty?
expire_method_caches(%i(has_visible_content?))
+ raw_repository.expire_has_local_branches_cache
end
def lookup_cache