@staticmethod
    def ensureIsWorkingDirectory(path):
        try:
            runCommand(["git", "rev-parse"], cwd=path.path)
        except (CommandFailed, OSError):
            raise NotWorkingDirectory(
                "%s does not appear to be a Git repository."
                % (path.path,))
Ensure that C{path} is a Git working directory.
dataset/ETHPy150Open twisted/twisted/twisted/python/_release.py/GitCommand.ensureIsWorkingDirectory