A platform for community discussion. Free, open, simple.
FIX: Only delete theme folder if it has been created
David Taylor105359e54a31
diff --git a/lib/theme_store/git_importer.rb b/lib/theme_store/git_importer.rbindex f81e95e0402..6d8cee3c87d 100644--- a/lib/theme_store/git_importer.rb+++ b/lib/theme_store/git_importer.rb@@ -44,7 +44,7 @@ class ThemeStore::GitImporterreturn Discourse::Utils.execute_command("git", "diff", "--staged")endensure- FileUtils.rm_rf local_temp_folder+ FileUtils.rm_rf local_temp_folder if local_temp_folderenddef commits_since(hash)