MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / scrub_git_env

Function scrub_git_env

crates/openshell-cli/src/run.rs:6117–6130  ·  view source on GitHub ↗
(command: &mut Command)

Source from the content-addressed store, hash-verified

6115}
6116
6117fn scrub_git_env(command: &mut Command) -> &mut Command {
6118 for key in [
6119 "GIT_DIR",
6120 "GIT_WORK_TREE",
6121 "GIT_INDEX_FILE",
6122 "GIT_PREFIX",
6123 "GIT_COMMON_DIR",
6124 "GIT_OBJECT_DIRECTORY",
6125 "GIT_ALTERNATE_OBJECT_DIRECTORIES",
6126 ] {
6127 command.env_remove(key);
6128 }
6129 command
6130}
6131
6132// ---------------------------------------------------------------------------
6133// Sandbox policy commands

Callers 3

git_repo_rootFunction · 0.85
git_sync_filesFunction · 0.85
init_git_repoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected