Skip to content
Merged
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
6 changes: 2 additions & 4 deletions github_scripts/get_git_sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from typing import Optional
from pathlib import Path
from shutil import rmtree
import shlex


def run_command(
Expand All @@ -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,
Expand Down Expand Up @@ -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
Expand Down