Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

@gibfahn

Description

@gibfahn

Describe the bug

When I try to fork a repo and add a new remote, it doesn't add a new remote to my current repository.

gh version 1.4.0 (2020-12-17)

Expected vs actual behavior

I expect to see a fork remote added to my repository, but nothing is added.

Logs

gh repo fork --clone=false --remote=true $(git remote get-url up)
- Forking someorg/somerepo...
✓ Created fork gib/somerepogit remote
upgh --version
gh version 1.4.0 (2020-12-17)
https://github.com/cli/cli/releases/latest

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggh-reporelating to the gh repo commandgood first issuep3Affects a small number of users or is largely cosmetic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions