Skip to content

A platform for community discussion. Free, open, simple.

FIX: copy local theme changes to correct temp folder when diffing updates to remote theme

Penar Musaraj5cf5e735361e
diff --git a/lib/theme_store/git_importer.rb b/lib/theme_store/git_importer.rb
index 673e9a45945..cf44169ceb5 100644
--- a/lib/theme_store/git_importer.rb
+++ b/lib/theme_store/git_importer.rb
@@ -38,7 +38,7 @@ class ThemeStore::GitImporter
Dir.chdir(@temp_folder) do
Discourse::Utils.execute_command("git", "checkout", local_version)
Discourse::Utils.execute_command("rm -rf ./*/")
- Discourse::Utils.execute_command("cp", "-rf", "#{local_temp_folder}/#{exporter.export_name}/", @temp_folder)
+ Discourse::Utils.execute_command("cp", "-rf", "#{local_temp_folder}/#{exporter.export_name}/.", @temp_folder)
Discourse::Utils.execute_command("git", "checkout", "about.json")
# adding and diffing on staged so that we catch uploads
Discourse::Utils.execute_command("git", "add", "-A")