You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tooling.apache.org by ak...@apache.org on 2026/05/05 11:08:29 UTC
(tooling-agents) branch main updated: Adding log line about filtering to repo subdir
This is an automated email from the ASF dual-hosted git repository.
andrewmusselman pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-agents.git
The following commit(s) were added to refs/heads/main by this push:
new 306e9b0 Adding log line about filtering to repo subdir
306e9b0 is described below
commit 306e9b099f7b085881ee58457fed819c312daf9c
Author: Andrew Musselman <an...@gmail.com>
AuthorDate: Tue May 5 04:08:20 2026 -0700
Adding log line about filtering to repo subdir
---
ASVS/agents/asvs_download_repo.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/ASVS/agents/asvs_download_repo.py b/ASVS/agents/asvs_download_repo.py
index 37d66b3..2a0a66e 100644
--- a/ASVS/agents/asvs_download_repo.py
+++ b/ASVS/agents/asvs_download_repo.py
@@ -67,7 +67,11 @@ async def run(input_dict, tools):
# ----- Download tarball (single HTTP call) -----
# GitHub redirects this to a CodeLoad URL — follow_redirects must be on.
tarball_url = f"https://api.github.com/repos/{repo}/tarball/{default_branch}"
- print(f"Downloading tarball from {tarball_url}", flush=True)
+ if path_prefix:
+ print(f"Downloading tarball: {tarball_url}", flush=True)
+ print(f" (will filter to subdirectory: {path_prefix}/)", flush=True)
+ else:
+ print(f"Downloading tarball: {tarball_url}", flush=True)
tar_resp = await http_client.get(tarball_url, headers=headers, follow_redirects=True)
if tar_resp.status_code != 200:
return {"outputText": f"Error fetching tarball: {tar_resp.status_code} - {tar_resp.text[:500]}"}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org