Skip to content

Cannot recognize local repo path in quotation marks #23099

Closed

Description

@PtJade-Ceramic

The problem

A path of a local repository enclosed in a pair of double quotation marks entered into the Add local repository dialog, cannot be recognized by this app.

Release version

Version 3.5.8 (x64)

Operating system

Windows 11

Steps to reproduce the behavior

  1. Open this app.
  2. If the "Let's get started!" view shows, it suggests that you do not have any repos associated with this app. Create a new repo on your local drive with this app for the purpose of this issue.
  3. Focus on the repo bar and click Current repository.
  4. If you have created a repo in Step 2, it will be the only repo you can see here. Focus on it.
    Otherwise, focus on whichever repo as an example for this issue (Do not worry. You will not lose it as long as you follow the instruction when you do Step 13.)
  5. Open the context menu and select Show in Explorer.
  6. In File Explorer, go up (The focus will be on the repo folder).
  7. Open the context menu and select Copy as path. (You will get the path enclosed in a pair of double quotation marks copied. Paste it elsewhere to have a try!)
  8. Return to this app.
  9. Focus on the repo bar and click Current repository.
  10. Search and focus on the repo.
  11. Open the context menu and click Remove….
  12. Keep Also move this repository to Recycle Bin unchecked …
    Image
    … and select Remove.
  13. If the "Let's get started!" view shows again as it has in Step 2, click Add an Existing Repository from your Hard Drive…
    Otherwise, focus on the repo bar and Click Current repository → Add → Add existing repository…
  14. Paste what you have copied in Step 7. (You will see it enclosed in a pair of double quotation marks.)
  15. Select Add repository (or press Enter instead) and see what happens.

Log files

No response

Screenshots

Image

Additional context

Prior practice

As a contrast, VS Code's Open folder dialog accepts such a path enclosed in a pair of double quotation marks.

Work around

When this occurs, either

  • delete the enclosing quotation marks manually, or
  • click Choose… and paste what you have copied in Step 7 there.

Activity

  1. desktop-triage commented on Oct 30, 2026

    @desktop-triage

    Classification: Bug
    Priority: P3

    Information Assessment: The report includes app version (3.5.8), OS (Windows 11), precise reproduction steps using Windows Explorer's "Copy as path" feature (which wraps the path in double quotes), and screenshots showing the resulting path is not recognized. This is reproducible and well-scoped to a single issue.

    Duplicate Check: No exact duplicate found. Related-but-distinct issues: #22651 ("Add Local Repository rejects paths starting with ~", closed) deals with a different path-normalization edge case (tilde expansion), and #22648 ("Add Local Repository keeps showing the not-a-Git-repository warning after the path is corrected") is about stale warning state, not quote handling. Neither covers quoted paths.

    Recommended Labels:

    • bug — reproducible, incorrect handling of a valid OS-provided path format
    • priority-3 — affects a workaround-able edge case (user can strip quotes manually or type the path without them); not a core-function blocker

    Initial hypothesis

    The "Add existing repository" dialog resolves the entered text via Path.resolve('/', untildify(path)) in resolvedPath() (add-existing-repository.tsx#L278-L279), with no step that strips surrounding double-quote characters before this resolution or before calling getRepositoryType(path) for validation (same file, L96). Windows Explorer's "Copy as path" command (used in the reporter's steps) wraps the copied path in literal " characters, so pasting it verbatim produces a string like "C:\Users\foo\repo" (quotes included as part of the text). Because neither untildify nor Path.resolve strip embedded quote characters, the resulting path does not correspond to any real filesystem location, so getRepositoryType reports it as missing/not-a-repository — matching the reporter's observed warning, which disappears once they manually delete the quotes. This is consistent with the comparison to VS Code's folder picker, which evidently does sanitize quoted clipboard paths before use.

    Generated by Issue Triage (skills-driven) for #23099 · auto · 33.4 AIC · ⊞ 4.5K · ◷

  2. added
    bug
    priority-3
    on Nov 2, 2026
  3. changed the title [-]Cannot recognize local repo path in double quotation marks[/-] [+]Path in double quotation marks not recognized in in-place input box[/+] on Nov 2, 2026
  4. changed the title [-]Path in double quotation marks not recognized in in-place input box[/-] [+]Path in quotation marks not recognized in in-place input box[/+] on Nov 3, 2026
  5. changed the title [-]Path in quotation marks not recognized in in-place input box[/-] [+]Cannot recognize local repo path in double quotation marks[/+] on Nov 4, 2026
  6. changed the title [-]Cannot recognize local repo path in double quotation marks[/-] [+]Cannot recognize local repo path in quotation marks[/+] on Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority-3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions