()
Check if git is installed.
Check if git is installed.
Check if git is installed .
def check_git_installed() -> None:
    """Check if git is installed."""
    with subprocess.Popen(
        [GIT_PATH, "--help"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL
    ) as process:
        if process.wait():
            raise click.ClickException("Git is not installed.")
def check_git_installed ( ) -> None : with subprocess . Popen ( [ GIT_PATH , "--help" ] , stdout = subprocess . DEVNULL , stderr = subprocess . DEVNULL ) as process : if process . wait ( ) : raise click . ClickException ( "Git is not installed." )