Skip to content

Commit 3b8f4f7

Browse files
committed
fix git clone paths on windows
1 parent 3e250c4 commit 3b8f4f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/uv-git/src/git.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,8 @@ impl GitCheckout {
364364
// Make sure to pass the local file path and not a file://... url. If given a url,
365365
// Git treats the repository as a remote origin and gets confused because we don't
366366
// have a HEAD checked out.
367-
.arg(&database.repo.path)
368-
.arg(into)
367+
.arg(database.repo.path.portable_display().to_string())
368+
.arg(into.portable_display().to_string())
369369
.exec_with_streaming(&mut silent, &mut silent, true)?;
370370

371371
let repo = GitRepository::open(into)?;

0 commit comments

Comments
 (0)