The best way to control Claude Code, Codex and more from any computer or phone

main
ts 10 lines 464 Bytes
Raw
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 }