Skip to content

Deep link to PR worktree incorrectly prompts to add existing remote #4926

@eamodio

Description

@eamodio

When opening a deep link to create a worktree for a PR, users may be incorrectly prompted to add a remote that already exists in their repository. This is intermittent and more likely when multiple repositories are open.

Impact

Users opening deep links (e.g., from GitKraken) to create PR worktrees are disrupted by unnecessary prompts. If they proceed, they may end up with duplicate remotes pointing to the same repository.

Validation

  1. Open a repository with a remote configured as SSH (e.g., git@github.com:owner/repo.git)
  2. Open a deep link that references the same repo with HTTPS URL format
  3. Confirm no prompt appears to add an already-existing remote

Risk

Low - changes URL comparison from strict equality to flexible matching that is already used elsewhere in the same file.

Metadata

Metadata

Assignees

Labels

area-deeplinksIssues or features related to deep linksarea-worktreesIssues or features related to worktreesverified ✔Verified

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions