Commit 2abfdf5a authored by Nick Coghlan's avatar Nick Coghlan Committed by GitHub

Issue #29798: Handle git worktree in patchcheck (#1058)

The original attempted fix missed an `isdir()` call in
`get_base_branch()`.
parent 64c8f705
......@@ -70,7 +70,7 @@ def get_git_upstream_remote():
@status("Getting base branch for PR",
info=lambda x: x if x is not None else "not a PR 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
return None
version = sys.version_info
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment