@staticmethod<EOL><INDENT>def _assert_git_repo(target):<DEDENT>
hooks_dir = os.path.abspath(os.path.join(target, HOOKS_DIR_PATH))<EOL>if not os.path.isdir(hooks_dir):<EOL><INDENT>raise GitHookInstallerError(u"<STR_LIT>".format(target))<EOL><DEDENT>
Asserts that a given target directory is a git repository