-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Unable to checkout pull request from unknown repository #182
Unable to checkout pull request from unknown repository #182
Conversation
Is this still targeted for 0.10.2? |
I'll have a quick look, if it's trivial I'll try to fix it, otherwise I'll move. |
Mmm, is complicated to reproduce and it looks like a quite obscure case, I'll just move it. |
See also isaacs/github#168 |
We actually don't need that info, we can check out using the special ref https://help.github.com/articles/checking-out-pull-requests-locally/ |
Oh, it was in the issue description 🤦♂️ |
We don't really need to have the "head" repo present to check out a PR, we can use the special reference "pull/ID/head" instead. https://help.github.com/articles/checking-out-pull-requests-locally/ Fixes sociomantic-tsunami#182.
Fix attached. |
Trying to checkout a pull request which was created by a user that was but is not longer part of the repositories organisation crashes git-hub. In this case Github will say that the pull requests repo is
unknown repository
It still possible to checkout the pull request by
git fetch REMOTE pull/ID/head:BRANCHNAME