prepare-commit-msg hook code is populated in SCM commit message input #71550
Labels
bug
Issue identified by VS Code Team member as probable bug
git
GIT issues
help wanted
Issues identified as good community contribution opportunities
Milestone
Still happens in Insiders Build: ✅
VSCode Version: 1.32.3
OS Version: macOS 10.14.4
Steps to Reproduce:
prepare-commit-msg
git hook located either in your project at./.git/hooks
OR in your global git hooks directory - Example provided belowprepare-commit-msg
is inserted in the git commit entry input area.Does this issue occur when all extensions are disabled?: Yes
Additional Info:
I have used this hook for several months and it worked correctly until the most recent VSCode update (1.32.3). By "correctly" I mean that the VSCode commit message window was empty and functioned just as if I had no git hook, but the resulting commit message did reflect the results of the hook.
Here is the
prepare-commit-msg
hook I use, which simply adds<current-branch-name> -
to the front of each commit where<current-branch-name>
is the actual name of the current branch.Screenshot:
The text was updated successfully, but these errors were encountered: