Skip to content

Commit

Permalink
Fix git_worktree checkout with a Pathname
Browse files Browse the repository at this point in the history
Fix `git_repository.checkout` with a `Pathname` in
`ConfigurationScriptSource#checkout_git_repository`
  • Loading branch information
agrare committed Jan 15, 2025
1 parent 0508ed5 commit ac72040
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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?

Expand Down

0 comments on commit ac72040

Please sign in to comment.