FIX: unable to import private themes due to key checking

This commit is contained in:
Sam 2018-04-03 16:11:03 +10:00
parent 54819d72c9
commit f1ef46d7b7
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ class ThemeStore::GitImporter
end
Discourse::Utils.execute_command({
'GIT_SSH_COMMAND' => "ssh -i #{ssh_folder}/id_rsa"
'GIT_SSH_COMMAND' => "ssh -i #{ssh_folder}/id_rsa -o StrictHostKeyChecking=no"
}, "git", "clone", @url, @temp_folder)
ensure
FileUtils.rm_rf ssh_folder