Skip to content

GitHub install fails when GitHub remote is not named 'origin' #25956

@Waridley

Description

@Waridley

Bug Description

The GitHub install command only looks at the "origin" remote to find the repository. This fails when using a different remote name (e.g., "upstream", "github", etc.).

Expected Behavior

The command should parse all remotes and find the first valid GitHub remote URL.

Steps to Reproduce

  1. Add a GitHub remote with a name other than "origin" (e.g., git remote add github https://github.com/user/repo.git)
  2. Run the GitHub install command
  3. It fails with "Could not find git repository"

Suggested Fix

Parse all remotes using git remote -v and find the first valid GitHub remote URL.

Labels: bug

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions