Skip to content

Commit

Permalink
shallow clone ansible-core for performance
Browse files Browse the repository at this point in the history
  • Loading branch information
nitzmahone committed Jun 9, 2023
1 parent de1ee9e commit bc15c12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/bin/clone-core.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def main() -> None:
)

with tempfile.TemporaryDirectory() as temp_dir:
subprocess.run(['git', 'clone', 'https://github.com/ansible/ansible', '-b', branch, temp_dir], check=True)
subprocess.run(['git', 'clone', 'https://github.com/ansible/ansible', '--depth=1', '-b', branch, temp_dir], check=True)

for path in paths:
src = pathlib.Path(temp_dir, path)
Expand Down

0 comments on commit bc15c12

Please sign in to comment.