Skip to content

Commit

Permalink
Merge pull request #23308 from agrare/fix_checkout_git_repository_pat…
Browse files Browse the repository at this point in the history
…hname

Fix git_worktree checkout with a Pathname
  • Loading branch information
Fryguy authored Jan 15, 2025
2 parents 0508ed5 + ac72040 commit 10857fb
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 10857fb

Please sign in to comment.