-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Open
Labels
coreThis issue is not accepting PRs from outside contributorsThis issue is not accepting PRs from outside contributorsenhancementa request to improve CLIa request to improve CLI
Description
gh version 1.0.0 (2020-09-16)
Setup: a "bare" git repository with multiple remotes and multiple git worktrees. For example: both https://github.com/llvm/llvm-project and https://github.com/apple/llvm-project
Problem: Unlike similar git workflows, gh asks the user to pick a "base repository" which is tied to the bare repository, not branches nor worktrees.
Workaround: create a wrapper around gh that tries to set GH_REPO as needed. In short, the script will extract the GitHub URL from git and pass it to gh: git config remote.$(git config branch.$(git branch --show-current).remote).url
Finally, and unless I missed something, the "base repository" feature seems undocumented.
Metadata
Metadata
Assignees
Labels
coreThis issue is not accepting PRs from outside contributorsThis issue is not accepting PRs from outside contributorsenhancementa request to improve CLIa request to improve CLI