Skip to content

Commit

Permalink
fix: restore compatibility with Git prior to v2.31 (#1838)
Browse files Browse the repository at this point in the history
  • Loading branch information
ap-wtioit authored Oct 28, 2024
1 parent 89ecc2f commit 05aa175
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions copier/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 05aa175

Please sign in to comment.