Open History to see the last commit
1import * as HostProcess from "../HostProcess.ts";
2import { 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.
6for (const name of Object.keys(
7 unsetInheritedGitRepositoryEnv(process.env, HostProcess.Platform.defaultValue()),
8)) {
9 delete process.env[name];
10}