Git Hooks?
I have a quick question regarding PyCharm...
Does the Git support in PyCharm correctly use my custom git hooks?
I have a special pre-commit hook for stripping trailing whitespace from text-type files (I know PyCharm does this for edited files, but my hook is more generic)
The reason I'm not sure PyCharm is using my hooks is that the commit output shown in the versioning output window does not seem to contain the tell-tale output from my custom hooks...
Please sign in to leave a comment.
Hello Adam,
PyCharm runs your regular git binary in order to perform the commit, so there
should be no reason for it not to execute the hooks. However, it may well
be possible that we don't show correctly all the output of the commands that
we execute.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Awesome, thanks for the info.
I realize this is a very old post. To be clear, as long as the hooks are executed by the git binary, phpStorm will also execute the hooks? Does this apply to git.exe on windows as well? I'm trying to get git automation working windows clients.