mirror of
https://github.com/openai/codex.git
synced 2026-10-22 17:58:46 +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,
|
&mut env_map,
|
||||||
&command,
|
&command,
|
||||||
/*inherit_path*/ false,
|
/*inherit_path*/ false,
|
||||||
/*add_git_safe_directory*/ false,
|
/*add_git_safe_directory*/ true,
|
||||||
)?;
|
)?;
|
||||||
let policy = common.policy;
|
let policy = common.policy;
|
||||||
let current_dir = common.current_dir;
|
let current_dir = common.current_dir;
|
||||||
|
|||||||
@@ -320,7 +320,7 @@ pub(crate) async fn spawn_windows_sandbox_session_legacy(
|
|||||||
&mut env_map,
|
&mut env_map,
|
||||||
&command,
|
&command,
|
||||||
/*inherit_path*/ false,
|
/*inherit_path*/ false,
|
||||||
/*add_git_safe_directory*/ false,
|
/*add_git_safe_directory*/ true,
|
||||||
)?;
|
)?;
|
||||||
if !common.policy.has_full_disk_read_access() {
|
if !common.policy.has_full_disk_read_access() {
|
||||||
anyhow::bail!("Restricted read-only access requires the elevated Windows sandbox backend");
|
anyhow::bail!("Restricted read-only access requires the elevated Windows sandbox backend");
|
||||||
|
|||||||
Reference in New Issue
Block a user