When working in a fork of a GitHub repo, depending on how the remotes are configured locally, completion of issues and pull requests may not work because the fork is being used for the lookup.
This patch checks the value of gh repo set-default --view and uses that instead of the git info discovered in the cmp_git.utils.git_git_info() function. If the default repo has not previously been configured, the command to view it will fail no change is made to the git info.
When working in a fork of a GitHub repo, depending on how the remotes are configured locally, completion of issues and pull requests may not work because the fork is being used for the lookup.
This patch checks the value of
gh repo set-default --view
and uses that instead of the git info discovered in thecmp_git.utils.git_git_info()
function. If the default repo has not previously been configured, the command to view it will fail no change is made to the git info.