Skip to content

Fix reclone on Windows#757

Open
Koei32 wants to merge 2 commits into
r-Techsupport:mainfrom
Koei32:fix-reclone
Open

Fix reclone on Windows#757
Koei32 wants to merge 2 commits into
r-Techsupport:mainfrom
Koei32:fix-reclone

Conversation

@Koei32
Copy link
Copy Markdown
Contributor

@Koei32 Koei32 commented May 22, 2026

The reclone function fails on Windows with an access denied error when it tries to rename the "repo__tmp" directory to "repo". This is presumably because git2::Repository holds a handle to the repo directory, which makes the rename fail.

This change fixes the issue by only cloning the repo without holding an instance of it, then performing the rest of the procedure.

@Koei32
Copy link
Copy Markdown
Contributor Author

Koei32 commented May 23, 2026

Fixes #267

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant