The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 04:45 UTC
| 1 | import * as HostProcess from "../HostProcess.ts"; |
| 2 | import { unsetInheritedGitRepositoryEnv } from "./gitRepositoryEnv.ts"; |
| 3 | |
| 4 | // A test run started from `git bisect run`, `git rebase --exec` or a hook inherits GIT_DIR. Every git |
| 5 | // command a test or the code under test starts would then write into that repository. |
| 6 | for (const name of Object.keys( |
| 7 | unsetInheritedGitRepositoryEnv(process.env, HostProcess.Platform.defaultValue()), |
| 8 | )) { |
| 9 | delete process.env[name]; |
| 10 | } |