Check if repository exists before performing housekeeping

parent e9732404
......@@ -514,6 +514,8 @@ class Project < ActiveRecord::Base
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