Skip to content

Accept quoted local repository paths - #23108

Merged
tidy-dev merged 1 commit into
developmentfrom
tidy-dev-fix-issue-23099
Nov 3, 2026
Merged

tidy-dev merged 1 commit into
developmentfrom
tidy-dev-fix-issue-23099

Conversation

@tidy-dev

@tidy-dev tidy-dev commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Closes #23099

Description

Normalize one matching pair of double quotes around a local repository path before validation and resolution, so paths copied from Windows Explorer can be added directly. Paths without matching outer quotes are unchanged.

Validation

  • yarn test app/test/unit/ui/repository-directory-exceptions-test.tsx — passed (5 tests).
  • yarn lint:fix — passed.
  • Playwright before-fix run (yarn test:e2e:build:unpackaged && DESKTOP_E2E_APP_MODE=unpackaged npx playwright test --config app/test/e2e/playwright.config.ts app/test/e2e/quoted-repository-path.e2e.ts) — passed.
  • Playwright after-fix run (yarn test:e2e:build:unpackaged && EXPECT_QUOTED_PATH_SUCCESS=true DESKTOP_E2E_APP_MODE=unpackaged npx playwright test --config app/test/e2e/playwright.config.ts app/test/e2e/quoted-repository-path.e2e.ts) — passed. The temporary E2E spec was removed after capturing evidence.
  • After video recorded against e1bc8abadf6bc70bc3067427d6c2f52575aeb636 on macOS: yarn test:e2e:build:unpackaged and DESKTOP_E2E_APP_MODE=unpackaged npx playwright test --config app/test/e2e/playwright.config.ts app/test/e2e/quoted-path-video.e2e.ts — passed. The temporary recording spec was removed afterward. Windows was not directly exercised.
  • yarn test — failed with six unrelated Git integration-test failures across checkout, push, rev-parse, and pull-error parsing; the targeted test above passes.

Screenshots

Before: The Add Local Repository dialog rejects a path enclosed in double quotes

After: Playwright recording showing a path with surrounding double quotes being added successfully and the repository opening.

quoted-path-after.mp4

Release notes

[Fixed] Accept local repository paths copied with surrounding quotes - #23099

Team-authored review

Evidence: Validation results, before screenshot, and Playwright after video above.

Review path: Lightweight review.

Author assessment of the change and evidence is pending; keep this PR in draft until completed.

Copilot AI balanced review requested due to automatic review settings November 2, 2026 16:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the change to accept quoted local repository paths.

No open issues 🎉

What changed in this PR

This PR addresses #23099 by allowing the Add Local Repository dialog to accept quoted paths copied from Windows Explorer.

Changes:

  • Remove one matching pair of outer double quotes before path validation and resolution.
  • Add a regression test verifying that a quoted path is validated, added, and the dialog dismissed.
File Description
app/​test/​unit/​ui/​repository-directory-exceptions-test.tsx Tests successful addition of a repository using a quoted path.
app/​src/​ui/​add-repository/​add-existing-repository.tsx Normalizes outer quotes before validating and resolving repository paths.

Review effort: Balanced

@tidy-dev
tidy-dev marked this pull request as ready for review November 3, 2026 12:22
@tidy-dev
tidy-dev requested a review from a team as a code owner November 3, 2026 12:22
@tidy-dev
tidy-dev requested a review from niik November 3, 2026 12:22
@tidy-dev
tidy-dev merged commit 99907e3 into development Nov 3, 2026
32 checks passed
@tidy-dev
tidy-dev deleted the tidy-dev-fix-issue-23099 branch November 3, 2026 13:25
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.

Cannot recognize local repo path in quotation marks

3 participants