From 41f327fdd256969310677ca945fec3f54a2d651f Mon Sep 17 00:00:00 2001 From: James Bruten <109733895+james-bruten-mo@users.noreply.github.com> Date: Thu, 18 Dec 2025 08:00:54 +0000 Subject: [PATCH] Revert "Use gitignore to filter rsync of local clones (#150)" This reverts commit 31533b6e4f33d423667b9bbff76671f94a90f503. --- github_scripts/get_git_sources.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/github_scripts/get_git_sources.py b/github_scripts/get_git_sources.py index 3e338e0..e9f94f2 100644 --- a/github_scripts/get_git_sources.py +++ b/github_scripts/get_git_sources.py @@ -12,7 +12,6 @@ from typing import Optional from pathlib import Path from shutil import rmtree -import shlex def run_command( @@ -25,7 +24,7 @@ def run_command( Outputs: - result object from subprocess.run """ - command = shlex.split(command) + command = command.split() result = subprocess.run( command, capture_output=True, @@ -119,8 +118,7 @@ def sync_repo(repo_source: str, repo_ref: str, loc: Path) -> None: loc.mkdir(parents=True) # Trailing slash required for rsync - # Respect .gitignore for rsync - command = f"rsync -av {repo_source}/ {loc} --filter=':- .gitignore'" + command = f"rsync -av {repo_source}/ {loc}" run_command(command) # Fetch the main branch from origin