Skip to content

Commit 41f327f

Browse files
Revert "Use gitignore to filter rsync of local clones (#150)"
This reverts commit 31533b6.
1 parent 31533b6 commit 41f327f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

github_scripts/get_git_sources.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
from typing import Optional
1313
from pathlib import Path
1414
from shutil import rmtree
15-
import shlex
1615

1716

1817
def run_command(
@@ -25,7 +24,7 @@ def run_command(
2524
Outputs:
2625
- result object from subprocess.run
2726
"""
28-
command = shlex.split(command)
27+
command = command.split()
2928
result = subprocess.run(
3029
command,
3130
capture_output=True,
@@ -119,8 +118,7 @@ def sync_repo(repo_source: str, repo_ref: str, loc: Path) -> None:
119118
loc.mkdir(parents=True)
120119

121120
# Trailing slash required for rsync
122-
# Respect .gitignore for rsync
123-
command = f"rsync -av {repo_source}/ {loc} --filter=':- .gitignore'"
121+
command = f"rsync -av {repo_source}/ {loc}"
124122
run_command(command)
125123

126124
# Fetch the main branch from origin

0 commit comments

Comments
 (0)