Describe the bug
gh repo clone has a -u/--upstream-remote-name flag for changing the default upstream branch name, but there should also be an option to disable fetching the upstream branch.
This is useful when there's different permissions for the upstream repo, which can lead to some very confusing behavior: the clone command runs for a while and shows a permission error, but the contents is actually there. This is confusing since the error doesn't show the repo in question.
It could also be related to #8273 -- if there's a way to disable the upstream branch, it would make more sense to default to the actual repo when working with a fork.
Describe the bug
gh repo clonehas a-u/--upstream-remote-nameflag for changing the default upstream branch name, but there should also be an option to disable fetching the upstream branch.This is useful when there's different permissions for the upstream repo, which can lead to some very confusing behavior: the clone command runs for a while and shows a permission error, but the contents is actually there. This is confusing since the error doesn't show the repo in question.
It could also be related to #8273 -- if there's a way to disable the upstream branch, it would make more sense to default to the actual repo when working with a fork.