-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hub -C local_dir pr checkout N
doesn't work
#2612
Comments
I think the problem happens at the following line at the end of https://github.com/github/hub/blob/31b6443687b3a0313000f8044bffbbed0a8a9b97/commands/pr.go#L324 because the https://github.com/github/hub/blob/93537d457500c1d9f2e5671b9b9b1ebf90a55668/commands/args.go#L57 |
removing that line from args.go (see scpeters@b78b010) fixes the issue for me, but it's possible there are unintended side-effects of that change |
that line was explicitly added in 40e0cd2, so I'm guessing it shouldn't be removed |
Use pushd and popd around `hub pr checkout N` to workaround the following hub issue: mislav/hub#2612 Signed-off-by: Steve Peters <scpeters@openrobotics.org>
Use pushd and popd around `hub pr checkout N` to workaround the following hub issue: mislav/hub#2612 Signed-off-by: Steve Peters <scpeters@openrobotics.org>
Build bottles in response to "build bottle" trigger phrase in github comments rather than in response to opening a PR or adding new commits. Disconnect bottle builder job from pull request creator for now. Use hub to checkout ghprbPullId with a github token set from the jenkins credentials store. Use `git fetch --unshallow` explicitly with https since test-bot will try to checkout with ssh and run into permission problems. Set `GITHUB_*` environment variables expected by test-bot. * Workaround bug in `hub -C dir pr checkout N` Use pushd and popd around `hub pr checkout N` to workaround the following hub issue: mislav/hub#2612 * Use OSRFUNIXBase for jobs on master The pull request updater and pr hash updater both run on master but are failing since #279 since those jobs don't have a Dockerfile or build.sh. Using OSRFUNIXBase instead of OSRFLinuxBase fixes it. Signed-off-by: Steve Peters <scpeters@openrobotics.org>
Command attempted:
hub -C local_dir pr checkout 1
What happened:
More info:
I'm able to do
hub -C local_dir pr list
successfully, andpushd local_dir; hub pr checkout 1; popd
works, but for some reason I can't use-C local_dir
withhub pr checkout
.The text was updated successfully, but these errors were encountered: