New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle "git worktree" in "make patchcheck" #73984
Comments
While backporting bpo-29656 to get "make patchcheck" to play nice with git PR branches, I discovered an incompatibility between the way "git worktree" works and the assumptions in "patchcheck.py". Specifically, in a worktree, ".git" is a file, rather than a directory: $ cat .git
gitdir: /home/ncoghlan/devel/cpython/.git/worktrees/py27 So the current isdir() check should be relaxed to just an exists() check. |
Turns out I missed another isdir() check in get_base_branch(), so this still isn't working properly in git worktree directories. |
Tools/scripts/patchcheck.py still checks isdir() in get_base_branch(): @status("Getting base branch for PR", Was it deliberate to not change this line? |
No, that's the bug that prompted me to reopen the issue. I just got distracted and never submitted the follow-up PR :( |
OK, this should really be working now (and I checked it on my 2.7 checkout before submitting that PR). Any further problems found should go in a new issue. |
make patchcheck
#629make patchcheck
#633make patchcheck
#634make patchcheck
(#629) #635Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: