Commit 429c3ccc authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre
Browse files

Check if repository exists before performing housekeeping

parent c0e92598fd06
......@@ -514,6 +514,8 @@ def reset_cache_and_import_attrs
end
def perform_housekeeping
return unless repo_exists?
run_after_commit do
begin
Projects::HousekeepingService.new(self).execute
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment