Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions github_scripts/get_git_sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,10 +324,7 @@ def clone_repo_mirror(
# Clone if the repo doesn't exist. If the mirror is local we don't copy
# the objects to make it much faster.
try:
# Adding `--revision {fetch}` to the clone would be more efficient
# due to avoiding an unnecessary checkout, however we need to
# support versions of git older than v2.49.
run_command(f"git clone --shared {mirror_loc} {loc}")
run_command(f"git clone --shared --no-checkout {mirror_loc} {loc}")
run_command(f"git -C {loc} checkout {fetch}")
except SubprocessRunError:
logger.error(
Expand Down