cli/pkg/cmd/repo/fork
majiayu000 3f0044fd94 fix: error when --remote flag used with repo argument
When a repository argument is provided to `gh repo fork`, the command
operates independently of the current local repository. Using --remote
in this context is incompatible because there's no local repository to
add the remote to.

This change returns an explicit error when these flags are combined,
providing clear feedback instead of silently ignoring the --remote flag.

Fixes #2722

Signed-off-by: majiayu000 <1835304752@qq.com>
2025-12-26 14:43:52 +08:00
..
fork.go fix: error when --remote flag used with repo argument 2025-12-26 14:43:52 +08:00
fork_test.go fix: error when --remote flag used with repo argument 2025-12-26 14:43:52 +08:00
forkResult.json isolate repo fork command and tweak usage 2020-07-27 13:04:31 -05:00