This question already has answers here: How can I profile a multithread program in Py开发者_StackOverflowthon?
According to the manual, the post-checkout hook is run after a git checkout (just as expected) but also after a git clone (unless you pass --no-checkout).
严防死守,保卫IE