api doc fix
only return commit-msg hook on http success

- reported as issue #141 in uwolfer/gerrit-intellij-plugin