]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
patchcheck: use URL paths to identify upstream remote (GH-135806)
authorKattni <kattni@kattni.com>
Sun, 22 Jun 2025 04:51:23 +0000 (00:51 -0400)
committerGitHub <noreply@github.com>
Sun, 22 Jun 2025 04:51:23 +0000 (04:51 +0000)
commitac9d37c60b7d10cb38fc9e5cb04e398dbc5bf2e5
tree33f43ef54034783f9bbb57729db83101f60ad665
parentb14986c91464b06e9016678637e41d0e0192bbe8
patchcheck: use URL paths to identify upstream remote (GH-135806)

* 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
Misc/ACKS
Tools/patchcheck/patchcheck.py