Title: patchcheck does not recognise the upstream remote in a partial clone (git remote -v appends "[blob:none]") · Issue #156064 · python/cpython · GitHub
Open Graph Title: patchcheck does not recognise the upstream remote in a partial clone (git remote -v appends "[blob:none]") · Issue #156064 · python/cpython
X Title: patchcheck does not recognise the upstream remote in a partial clone (git remote -v appends "[blob:none]") · Issue #156064 · python/cpython
Description: Bug report Bug description: make patchcheck fails to find the upstream remote in a partial clone (git clone --filter=blob:none ...), even when the remote is named upstream and points at https://github.com/python/cpython: ValueError: Patc...
Open Graph Description: Bug report Bug description: make patchcheck fails to find the upstream remote in a partial clone (git clone --filter=blob:none ...), even when the remote is named upstream and points at https://git...
X Description: Bug report Bug description: make patchcheck fails to find the upstream remote in a partial clone (git clone --filter=blob:none ...), even when the remote is named upstream and points at https://git...
Opengraph URL: https://github.com/python/cpython/issues/156064
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"patchcheck does not recognise the upstream remote in a partial clone (git remote -v appends \"[blob:none]\")","articleBody":"# Bug report\n\n### Bug description:\n\n`make patchcheck` fails to find the upstream remote in a partial clone (`git clone --filter=blob:none ...`), even when the remote is named `upstream` and points at `https://github.com/python/cpython`:\n\n```\nValueError: Patchcheck was unable to find an unambiguous upstream remote, with URL matching 'https://github.com/python/cpython'. For help creating an upstream remote, see Dev Guide: https://devguide.python.org/getting-started/git-boot-camp/#cloning-a-forked-cpython-repository\nRemotes found:\norigin\thttps://github.com/ekanshul/cpython.git (fetch)\n```\n\nSince Git 2.37 (git/git@ef6d15ca53), `git remote -v` appends the object filter of a promisor remote to its fetch line:\n\n```\n$ git remote -v\norigin\thttps://github.com/ekanshul/cpython.git (fetch)\norigin\thttps://github.com/ekanshul/cpython.git (push)\nupstream\thttps://github.com/python/cpython.git (fetch) [blob:none]\nupstream\thttps://github.com/python/cpython.git (push)\n```\n\n`get_git_upstream_remote()` in `Tools/patchcheck/patchcheck.py` (from #135806) selects fetch lines with `remote.endswith(\"(fetch)\")`, so the partially-cloned `upstream` is dropped both from the candidates and from the \"Remotes found\" list in the error message, which makes the message misleading too. Matching `\"(fetch)\"` anywhere on the line fixes it.\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nmacOS (git 2.50.1)\n\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-156065\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/ekanshul","@type":"Person","name":"ekanshul"},"datePublished":"2026-08-19T17:35:24Z","url":"https://github.com/python/cpython/issues/156064"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:290be0c6-0eec-7b6f-8a37-e83f480506e9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E18A:382318:ECB515:128B49E:6B023762 |
| html-safe-nonce | 8cd24d3ee660c89c40216d53190fe19d8d810f1fdf7287cba97f40cb72922182 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMThBOjM4MjMxODpFQ0I1MTU6MTI4QjQ5RTo2QjAyMzc2MiIsInZpc2l0b3JfaWQiOiIzNDY1OTE3ODA1MTIyMTcyNzcwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 7b10ddb3c09fdb0261bf8acd6f3e3b6e053acecfad47c4f97059141dbf3e0bc7 |
| hovercard-subject-tag | issue:5195446828 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/156064/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f462d7df8fc3907b0038fd3dcfe41450088acdb877e28e85d6ad6b912c81679d/python/cpython/issues/156064 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f462d7df8fc3907b0038fd3dcfe41450088acdb877e28e85d6ad6b912c81679d/python/cpython/issues/156064 |
| og:image:alt | Bug report Bug description: make patchcheck fails to find the upstream remote in a partial clone (git clone --filter=blob:none ...), even when the remote is named upstream and points at https://git... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ekanshul |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width