def METHOD_NAME(self) -> str:
    cmd = (
        "git",
        "--git-dir",
        self._git_dir,
        "rev-parse",
        "--short",
        self.sha1,
    )
    with subprocess.Popen(
        cmd,
        stdout=subprocess.PIPE,
    ) as p:
        assert p is not None and p.stdout is not None
        return p.stdout.read().strip().decode('ascii')