Skip to content

Commit

Permalink
fix git clone paths on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ibraheemdev committed May 28, 2024
1 parent 3e250c4 commit 3b8f4f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/uv-git/src/git.rs
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,8 @@ impl GitCheckout {
// Make sure to pass the local file path and not a file://... url. If given a url,
// Git treats the repository as a remote origin and gets confused because we don't
// have a HEAD checked out.
.arg(&database.repo.path)
.arg(into)
.arg(database.repo.path.portable_display().to_string())
.arg(into.portable_display().to_string())
.exec_with_streaming(&mut silent, &mut silent, true)?;

let repo = GitRepository::open(into)?;
Expand Down

0 comments on commit 3b8f4f7

Please sign in to comment.