docs: def check_dependencies():
      """
      Check that dependencies are installed:
      - require git 2.7+, so that credential-cache--daemon ignores SIGHUP
          https://github.com/git/git/blob/v2.7.0/credential-cache--daemon.c
      """
  
      # Check that git is installed
      if not shutil.which("git"):
          raise Error(_("You don't have git. Install git, then re-run!"))
  
      # Check that git --version > 2.7
      version = subprocess.check_output(["git", "--version"]).decode("utf-8")
      matches = re.search(r"^git version (\d+\.\d+\.\d+).*$", version)
      if not matches or pkg_resources.parse_version(matches.group(1)) < pkg_resources.parse_version("2.7.0"):
          raise Error(_("You have an old version of git. Install version 2.7 or later, then re-run!"))