diff --git a/copier/tools.py b/copier/tools.py index 983e712bb..d2f5f064e 100644 --- a/copier/tools.py +++ b/copier/tools.py @@ -230,16 +230,15 @@ def get_git_objects_dir(path: Path) -> Path: from .vcs import get_git git = get_git() - return Path( + return path.joinpath( git( "-C", path, "rev-parse", - "--path-format=absolute", "--git-path", "objects", ).strip() - ) + ).absolute() def set_git_alternates(*repos: Path, path: Path = Path(".")) -> None: