From ac720405d128daf34650e6bd8e2490dc31204de9 Mon Sep 17 00:00:00 2001 From: Adam Grare Date: Wed, 15 Jan 2025 12:50:58 -0500 Subject: [PATCH] Fix git_worktree checkout with a Pathname Fix `git_repository.checkout` with a `Pathname` in `ConfigurationScriptSource#checkout_git_repository` --- .../embedded_automation_manager/configuration_script_source.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/manageiq/providers/embedded_automation_manager/configuration_script_source.rb b/app/models/manageiq/providers/embedded_automation_manager/configuration_script_source.rb index 1b91afd502d..69e07ab40e5 100644 --- a/app/models/manageiq/providers/embedded_automation_manager/configuration_script_source.rb +++ b/app/models/manageiq/providers/embedded_automation_manager/configuration_script_source.rb @@ -92,7 +92,7 @@ def checkout_git_repository(target_directory = nil) target_directory ||= Pathname.new(Dir.mktmpdir) git_repository.update_repo - git_repository.checkout(scm_branch, target_directory) + git_repository.checkout(scm_branch, target_directory.to_s) return target_directory unless block_given?