@classmethod<EOL><INDENT>def contains_repository(cls, context, directory):<DEDENT>
directory = cls.get_vcs_directory(context, directory)<EOL>return context.is_file(os.path.join(directory, '<STR_LIT>'))<EOL>
Check whether the given directory contains a local repository.