patchcheck: use URL paths to identify upstream remote (GH-135806) · python/cpython@ac9d37c · GitHub
Skip to content

Commit ac9d37c

Browse files
authored
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
1 parent b14986c commit ac9d37c

2 files changed

Lines changed: 36 additions & 11 deletions

File tree

Misc/ACKS

Lines changed: 1 addition & 0 deletions

Tools/patchcheck/patchcheck.py

Lines changed: 35 additions & 11 deletions

0 commit comments

Comments
 (0)