repo fork: honor --remote with repo arg by VedantMadane · Pull Request #12475 · cli/cli · GitHub
Skip to content

repo fork: honor --remote with repo arg - #12475

Closed
VedantMadane wants to merge 1 commit into
cli:trunkfrom
VedantMadane:fix-fork-remote-arg
Closed

repo fork: honor --remote with repo arg#12475
VedantMadane wants to merge 1 commit into
cli:trunkfrom
VedantMadane:fix-fork-remote-arg

Conversation

@VedantMadane

Copy link
Copy Markdown

Summary

  • treat a repo argument that matches a local remote as the current repo when --remote is set
  • add a regression test for repo-arg + --remote

Testing

  • go test ./pkg/cmd/repo/fork -run TestRepoFork

Fixes #2722

@VedantMadane
VedantMadane requested a review from a team as a code owner January 14, 2026 20:09
@VedantMadane
VedantMadane requested a review from BagToad January 14, 2026 20:09
@cliAutomation cliAutomation added the external pull request originating outside of the CLI core team label Jan 14, 2026
@github-actions

Copy link
Copy Markdown
Contributor

@VedantMadane

Copy link
Copy Markdown
Author

Hi @cli, I've updated this PR. Could you please take a look when you have a moment? Thank you!

@BagToad

BagToad commented Mar 2, 2026

Copy link
Copy Markdown
Member

@BagToad BagToad closed this Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external pull request originating outside of the CLI core team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Repo fork ignores the --remote flag when specifying a repository via argument

3 participants