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...

2 comments

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.

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...

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0

Awesome, thanks for the info.

0

Please sign in to leave a comment.