def using_git(cwd):
    """Test whether the directory cwd is contained in a git repository."""
    try:
        git_log = shell_out(["git", "log"], cwd=cwd)
        return True
    except (CalledProcessError, __HOLE__):  # pragma: no cover
        return False
dataset/ETHPy150Open hayd/pep8radius/pep8radius/vcs.py/using_git