E
E
Evgeny Svirsky2018-05-11 21:49:29
git
Evgeny Svirsky, 2018-05-11 21:49:29

Why doesn't PHPStorm trigger a pre-commit hook?

Hello.
Why doesn't PHPStorm trigger pre-commit hook during UI commit?
At kommit through the terminal Everything works. If we commit through the IDE - Ctrl+K - the commit goes through, but the pre-commit hook doesn't work. And the Run Git hooks checkbox is enabled. Moreover, if you copy the command that is executed in the terminal during a GUI commit in the IDE and run it manually, pre-commit works. Any ideas? Thank you.
git commit -m "Some message"

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Sanych, 2018-05-11
@mountpoint

jetbrains products are full of bugs. It is possible that this is him. Create an issue at https://youtrack.jetbrains.com/issues

R
rPman, 2018-05-14
@rPman

do you have windows and may have a few git installed? which take settings from different directories (for example, mingw version and cygwin), does it happen that jetbrains does not have its own?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question