Skip to content

Commit 3a8b6cb

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/uv-git/src/git.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ 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)
367+
.arg(format!("\"{}\"", database.repo.path.portable_display()))
368368
.arg(into)
369369
.exec_with_streaming(&mut silent, &mut silent, true)?;
370370

0 commit comments

Comments
 (0)