@cli.command("<STR_LIT>")<EOL>@click.pass_context<EOL>def install_hook(ctx):
try:<EOL><INDENT>lint_config = ctx.obj[<NUM_LIT:0>]<EOL>hooks.GitHookInstaller.install_commit_msg_hook(lint_config)<EOL>hook_path = hooks.GitHookInstaller.commit_msg_hook_path(lint_config)<EOL>click.echo(u"<STR_LIT>".format(hook_path))<EOL>ctx.exit(<NUM_LIT:0>)<EOL><DEDENT>except hooks.GitHookInstallerError as e:<EOL><INDENT>click.echo(ustr(e), err=True)<EOL>ctx.exit(GIT_CONTEXT_ERROR_CODE)<EOL><DEDENT>
Install gitlint as a git commit-msg hook.