This is an automated email from the ASF dual-hosted git repository. sbp pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git
commit 369109e65787429a25d89ebf82ae69da3ab99577 Author: Dave Fisher <[email protected]> AuthorDate: Thu Feb 19 11:04:25 2026 -0800 Block SCM directories --- atr/util.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/atr/util.py b/atr/util.py index 9fae6d40..29ae5928 100644 --- a/atr/util.py +++ b/atr/util.py @@ -1244,6 +1244,9 @@ def validate_path_segment(path_segment: str, position: str = "Path segment") -> if path_segment in (".", ".."): raise ValueError(f"{position} cannot be a directory traversal") + if path_segment in (".git", ".svn"): + raise ValueError(f"{position} cannot be a SCM directory") + return path_segment --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
