diff options
author | Stan Hu <stanhu@gmail.com> | 2018-06-10 08:35:06 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-06-11 18:33:06 +0300 |
commit | 6defeb0a7d6928ad32d4d7a2fa35d0d71dbb9dea (patch) | |
tree | 1fb22e52bca3a7040df45415db2b8fd5cfb9a3ab /lib | |
parent | f646a8b9bc95fd6cecaa754f7dd0e8370c201502 (diff) |
Expire Wiki content cache after importing a repository
The cache state for Wikis that were imported via GitHub or Bitbucket does
not appear to have been flushed after a successful import.
Closes #47546
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/github_import/sequential_importer.rb | 2 | ||||
-rw-r--r-- | lib/tasks/import.rake | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/lib/gitlab/github_import/sequential_importer.rb b/lib/gitlab/github_import/sequential_importer.rb index 3cad919b4eb..6a181caf65d 100644 --- a/lib/gitlab/github_import/sequential_importer.rb +++ b/lib/gitlab/github_import/sequential_importer.rb @@ -42,8 +42,6 @@ module Gitlab klass.new(project, client, parallel: false).execute end - project.repository.after_import - true end end diff --git a/lib/tasks/import.rake b/lib/tasks/import.rake index aafbe52e5f8..0fd184d243f 100644 --- a/lib/tasks/import.rake +++ b/lib/tasks/import.rake @@ -50,7 +50,7 @@ class GithubImport end if import_success - @project.import_finish + @project.after_import puts "Import finished. Timings: #{timings}".color(:green) else puts "Import was not successful. Errors were as follows:" |