When the hook is a sequence of commands, execution is not stopped when the command fails. When the first command fails, it proceeds to the next command, and if the next command did not fail, completes the commit.  