fix(permissions): satisfy argument comment lint

Co-authored-by: Codex noreply@openai.com
This commit is contained in:
viyatb-oai
2026-06-01 16:42:21 -07:00
co-authored by Codex noreply@openai.com
parent b0913e0fcf
commit e4272f9d0b
+10 -2
View File
@@ -418,7 +418,11 @@ impl FileSystemSandboxPolicy {
let protected_git_subpaths = dedup_absolute_paths(
writable_root_paths
.iter()
.flat_map(|root| managed_git_read_only_subpaths_for_writable_root(root, true))
.flat_map(|root| {
managed_git_read_only_subpaths_for_writable_root(
root, /*allow_limited_git_writes*/ true,
)
})
.chain(
linked_gitdirs
.iter()
@@ -483,7 +487,11 @@ impl FileSystemSandboxPolicy {
let protected_git_roots = dedup_absolute_paths(
writable_root_paths
.iter()
.flat_map(|root| managed_git_read_only_subpaths_for_writable_root(root, false))
.flat_map(|root| {
managed_git_read_only_subpaths_for_writable_root(
root, /*allow_limited_git_writes*/ false,
)
})
.chain(
writable_root_paths
.iter()