diff options
author | Michael Kozono <mkozono@gmail.com> | 2017-07-25 16:51:37 -0700 |
---|---|---|
committer | Michael Kozono <mkozono@gmail.com> | 2017-07-28 14:44:23 -0700 |
commit | bab49fdf9f27c44e830c470b749c5bc0022a25f5 (patch) | |
tree | 2636a4e3eae662495e423a019514f6c258d32053 /lib/backup | |
parent | 4c89929fb4211aa1cf5f311a0cec89988de45184 (diff) | |
download | gitlab-ce-bab49fdf9f27c44e830c470b749c5bc0022a25f5.tar.gz |
Protect backups from stale cache for repo exists
Diffstat (limited to 'lib/backup')
-rw-r--r-- | lib/backup/repository.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/backup/repository.rb b/lib/backup/repository.rb index a1685c77916..02ed1e49ef8 100644 --- a/lib/backup/repository.rb +++ b/lib/backup/repository.rb @@ -189,6 +189,7 @@ module Backup end def empty_repo?(project_or_wiki) + project_or_wiki.repository.expire_exists_cache # protect backups from stale cache project_or_wiki.repository.empty_repo? rescue => e progress.puts "Ignoring repository error and continuing backing up project: #{project_or_wiki.path_with_namespace} - #{e.message}".color(:orange) |