This is an automated email from the ASF dual-hosted git repository.

wave pushed a commit to branch block-scm-directories
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git

commit 65ae06dc23fb572f631f1bf5903162bfbd039bae
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]

Reply via email to