Skip to content

Commit 896c4b2

Browse files
committed
T7714: Exclude auxiliary directories from common tarballs
1 parent 65cc127 commit 896c4b2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/package-build/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def build_package(package: list, patch_dir: Path) -> None:
140140
# Sanitize the commit ID and build a tarball for the package
141141
commit_id_sanitized = package['commit_id'].replace('/', '_')
142142
tarball_name = f"{repo_name}_{commit_id_sanitized}.tar.gz"
143-
run(['tar', '-czf', tarball_name, '-C', str(repo_dir.parent), repo_name], check=True)
143+
run(['tar', '--exclude=.git', '--exclude=.github', '-czf', tarball_name, '-C', str(repo_dir.parent), repo_name], check=True)
144144
print(f"I: Tarball created: {tarball_name}")
145145

146146
# Prepare the package if required

0 commit comments

Comments
 (0)