mirror of
https://github.com/openai/codex.git
synced 2026-09-05 15:18:41 +00:00
fix(permissions): export linked gitdirs for allow_git
Co-authored-by: Codex noreply@openai.com
This commit is contained in:
@@ -1129,6 +1129,7 @@ impl SandboxPolicy {
|
||||
|
||||
// For each root, compute subpaths that should remain read-only.
|
||||
let cwd_root = AbsolutePathBuf::from_absolute_path(cwd).ok();
|
||||
let raw_roots = roots.clone();
|
||||
let mut roots = roots
|
||||
.into_iter()
|
||||
.map(|writable_root| {
|
||||
@@ -1147,7 +1148,7 @@ impl SandboxPolicy {
|
||||
})
|
||||
.collect::<Vec<_>>();
|
||||
if *allow_limited_git_writes {
|
||||
add_limited_git_writable_roots(&mut roots);
|
||||
add_limited_git_writable_roots(&mut roots, &raw_roots);
|
||||
}
|
||||
roots
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user