Skip to content
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 doesn't follow http redirects #106

Open
rockneurotiko opened this issue Nov 9, 2020 · 0 comments
Open

gh doesn't follow http redirects #106

rockneurotiko opened this issue Nov 9, 2020 · 0 comments

Comments

@rockneurotiko
Copy link

The API v3 sometimes uses HTTP redirections, for example when the repository's name has changed.

Github documentation about the redirections: https://docs.github.com/en/free-pro-team@latest/rest/overview/resources-in-the-rest-api#http-redirects

I found this when trying to use magit-gh-pulls on a repository that had changed the name recently and I didn't updated the origin url, digging on the responses I saw that github was answering with a Moved Permanently redirect but gh wasn't following it.

Comment on magit-gh-pulls about it: sigma/magit-gh-pulls#107 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant