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
Fix prepare_commit.sh #54918
Fix prepare_commit.sh #54918
Conversation
75cdf1a
to
591b549
Compare
It was actually broken by b84393e in that a |
@troopa81 a commit in this PR also updates instruction as to how to properly set the pre-commit hook for it to work in any worktree, in case that's what prevented you from properly testing it (it surely prevented me) |
My hook is correctly set at the root of my repository and I'm not sure the modification on CONTRIBUTING.md are worthy (it brings more complexity). I didn't tested your modification. Same here, I didn't tested but it looks good to me. |
@troopa81 "correctly set" how ? Making pre-commit a symlink as suggested in CONTRIBUTING.md before this change would not be "correctly set" as it would always run the prepare-commit.sh script from the branch checked out in the "toplevel" git repository, and never in other worktrees, where you might be experimenting with changes to that script (as I was doing). |
@strk you're right, thanks for the tips |
This was broken with 135c4cb
this commit fixes it