mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 19:39:30 +08:00
DEV: Cleanup after remote update check (#12887)
Checking for remote should cleanup after itself. Currently each check litters the /tmp filesystem with checkouts. This patch ensures that update checks keep the system a bit tidier.
This commit is contained in:
@ -125,6 +125,11 @@ class RemoteTheme < ActiveRecord::Base
|
||||
self.last_error_text = nil
|
||||
ensure
|
||||
self.save!
|
||||
begin
|
||||
importer.cleanup!
|
||||
rescue => e
|
||||
Rails.logger.warn("Failed cleanup remote git #{e}")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user