Path = str # eg: "/home/user/.cache/git-cache/v1"
Repo = str # eg: "https://github.com/NixOS/nixpkgs.git"
Ref = str # eg: "master" or "v1.0.0"
Path = str # eg: "/home/user/.cache/git-cache/v1"
Repo = str # eg: "https://github.com/NixOS/nixpkgs.git"
Ref = str # eg: "master" or "v1.0.0"
ancestor: RefOrRev,
force: bool = False) -> None:
if not force and not is_ancestor(repo, descendant, ancestor):
ancestor: RefOrRev,
force: bool = False) -> None:
if not force and not is_ancestor(repo, descendant, ancestor):