mirror of
https://github.com/openai/codex.git
synced 2026-05-12 23:32:44 +00:00
Inject Git safe directory for Windows legacy sandbox
This commit is contained in:
@@ -388,7 +388,7 @@ mod windows_impl {
|
||||
&mut env_map,
|
||||
&command,
|
||||
/*inherit_path*/ false,
|
||||
/*add_git_safe_directory*/ false,
|
||||
/*add_git_safe_directory*/ true,
|
||||
)?;
|
||||
let policy = common.policy;
|
||||
let current_dir = common.current_dir;
|
||||
|
||||
@@ -320,7 +320,7 @@ pub(crate) async fn spawn_windows_sandbox_session_legacy(
|
||||
&mut env_map,
|
||||
&command,
|
||||
/*inherit_path*/ false,
|
||||
/*add_git_safe_directory*/ false,
|
||||
/*add_git_safe_directory*/ true,
|
||||
)?;
|
||||
if !common.policy.has_full_disk_read_access() {
|
||||
anyhow::bail!("Restricted read-only access requires the elevated Windows sandbox backend");
|
||||
|
||||
Reference in New Issue
Block a user