Skip to content

fix(desktop): strip Windows extended-path prefix before git clone - #3717

Open
JoeJoeflyn wants to merge 1 commit into
block:mainfrom
JoeJoeflyn:fix/windows-extended-path-clone
Open

fix(desktop): strip Windows extended-path prefix before git clone#3717
JoeJoeflyn wants to merge 1 commit into
block:mainfrom
JoeJoeflyn:fix/windows-extended-path-clone

Conversation

@JoeJoeflyn

@JoeJoeflyn JoeJoeflyn commented Jul 30, 2026

Copy link
Copy Markdown

Summary

  • PathBuf::canonicalize() on Windows returns paths with the \\?\ extended-length prefix, which Git for Windows rejects with Invalid argument
  • Use dunce::simplified() to strip the prefix at the two git CLI boundaries before passing paths to git

Fixes #3707

Testing

  • cargo test --lib -- project_repo_paths passes
  • cargo clippy --lib clean
  • Needs Windows verification: clone a project repo via Buzz Desktop

…ock#3707)

Signed-off-by: JoeJoeflyn <thaitainguyen336@gmail.com>
@JoeJoeflyn
JoeJoeflyn requested a review from a team as a code owner July 30, 2026 10:19
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.

[Bug] Windows Projects clone passes a \?\ extended path to Git and fails with Invalid argument

1 participant