-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
gh fails on a Repo that was moved or renamed #345
Comments
This exact same behavior also occurs for repos that were renamed. |
Here are my logs while testing on v0.5.4:
I could also verify the data in the newly transferred repo once I
|
In fact, now seeing yout check I also created a new repo and did these checks:
But still, I have this repo (https://github.com/b2wdigital/async-worker) that used to belong to The only difference is that when we changed this project from one org to the other we didn't transfered ownership we renamed the whole org. I will try do do more checks to see if I can find anything. |
With a fresh new clone I was able to reproduce the problem. Note: I cloned the project using the old URL.
Maybe this could be a good starting point to debug the code. The project is public so if anyone could try this too. Note: The same behavior happens when clonning via https. Thanks, |
@daltonmatos thanks for the update on this. I can reproduce this, however I believe the results are expected and this is not a bug. Anytime you rename an org means you have to update your local repos to the new location, as outlined in the warning ahead of making the change: I could not break the flow until I decided to rename the org. Steps were:
Happy to look into this further. Until then removing the |
Sure. Thanks. |
Describe the bug
I have a repository that was moved from one organization to another. The remote
origin
was still pointing to the old org, which works transparently when pushing and pulling code.gh
fails recognize that the repository has moved.Steps to reproduce the behavior
gh pr list
on this cloned code (cloned before the move)graphql error: 'Could not resolve to a Repository with the name '<repo-name>'.'
Expected vs actual behavior
Expected the PR to be listed.
Logs
Here is an example of this behavior. After changing the remote URL
gh
worked.The text was updated successfully, but these errors were encountered: