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:
parent
0127df61c1
commit
0abb272289
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue