| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
LGTM, thanks!
Sorry, something went wrong.
|
Running make patchcheck locally reminded me to update Misc/ACKS (@kattni I used "Kattni" based on your GH profile and website About page, so please let me know if you'd prefer a different entry) |
Sorry, something went wrong.
|
@ncoghlan Kattni is fine, thank you. |
Sorry, something went wrong.
* find defined "(fetch)" remotes with "python/cpython" in their URL * if there is exactly one, use that remote name * if there is one named "upstream", "origin", or "python", use that remote (in that precedence order) * otherwise report an error listing the defined remotes (cherry picked from commit ac9d37c) Co-authored-by: Kattni <kattni@kattni.com>
|
GH-135808 is a backport of this pull request to the 3.14 branch. |
Sorry, something went wrong.
* find defined "(fetch)" remotes with "python/cpython" in their URL * if there is exactly one, use that remote name * if there is one named "upstream", "origin", or "python", use that remote (in that precedence order) * otherwise report an error listing the defined remotes (cherry picked from commit ac9d37c) Co-authored-by: Kattni <kattni@kattni.com>
|
GH-135809 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
…) (#135808) Co-authored-by: Kattni <kattni@kattni.com>
…) (#135809) Co-authored-by: Kattni <kattni@kattni.com>
* find defined "(fetch)" remotes with "python/cpython" in their URL * if there is exactly one, use that remote name * if there is one named "upstream", "origin", or "python", use that remote (in that precedence order) * otherwise report an error listing the defined remotes
* find defined "(fetch)" remotes with "python/cpython" in their URL * if there is exactly one, use that remote name * if there is one named "upstream", "origin", or "python", use that remote (in that precedence order) * otherwise report an error listing the defined remotes
* find defined "(fetch)" remotes with "python/cpython" in their URL * if there is exactly one, use that remote name * if there is one named "upstream", "origin", or "python", use that remote (in that precedence order) * otherwise report an error listing the defined remotes
| Back | FazBrowse Home | New Git URL |
Currently, if you run patchcheck without a remote named upstream or origin, it fails with the following error:
I ran into this during my first contribution, and it required viewing the source code for patchcheck to figure out what the issue was.
To avoid this for others in the future, I have updated the patchcheck get_git_upstream_remote() method to be more robust. The following changes have been implemented:
Discussed with @ncoghlan prior to submitting this PR.