We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64c8f70 commit 2abfdf5Copy full SHA for 2abfdf5
Tools/scripts/patchcheck.py
@@ -70,7 +70,7 @@ def get_git_upstream_remote():
70
@status("Getting base branch for PR",
71
info=lambda x: x if x is not None else "not a PR branch")
72
def get_base_branch():
73
- if not os.path.isdir(os.path.join(SRCDIR, '.git')):
+ if not os.path.exists(os.path.join(SRCDIR, '.git')):
74
# Not a git checkout, so there's no base branch
75
return None
76
version = sys.version_info
0 commit comments