def uninstall(hook_type='<STR_LIT>'):
hook_path, legacy_path = _hook_paths(hook_type)<EOL>if not os.path.exists(hook_path) or not is_our_script(hook_path):<EOL><INDENT>return <NUM_LIT:0><EOL><DEDENT>os.remove(hook_path)<EOL>output.write_line('<STR_LIT>'.format(hook_type))<EOL>if os.path.exists(legacy_path):<EOL><INDENT>os.rename(legacy_path, hook_path)<EOL>output.write_line('<STR_LIT>'.format(hook_path))<EOL><DEDENT>return <NUM_LIT:0><EOL>
Uninstall the pre-commit hooks.