mirror of
https://github.com/python/cpython.git
synced 2025-09-30 12:21:51 +00:00
The original attempted fix missed an `isdir()` call in
`get_base_branch()`.
(cherry picked from commit 2abfdf5a81
)
This commit is contained in:
parent
af685f9050
commit
4c116cb3b3
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ def get_git_upstream_remote():
|
||||||
@status("Getting base branch for PR",
|
@status("Getting base branch for PR",
|
||||||
info=lambda x: x if x is not None else "not a PR branch")
|
info=lambda x: x if x is not None else "not a PR branch")
|
||||||
def get_base_branch():
|
def get_base_branch():
|
||||||
if not os.path.isdir(os.path.join(SRCDIR, '.git')):
|
if not os.path.exists(os.path.join(SRCDIR, '.git')):
|
||||||
# Not a git checkout, so there's no base branch
|
# Not a git checkout, so there's no base branch
|
||||||
return None
|
return None
|
||||||
version = sys.version_info
|
version = sys.version_info
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue