Stop leaking real GitHub tool paths to dispatch turns

This commit is contained in:
Meta Vens 2026-06-17 08:08:49 +01:00
commit 45dd81f968
6 changed files with 64 additions and 54 deletions

View file

@ -443,7 +443,6 @@ exit /b 0
["BIFROST_ENFORCE_GITHUB_GATE"] = "true",
["BIFROST_GIT_EXECUTABLE"] = Path.Combine(gatePath, "git.cmd"),
["BIFROST_GH_EXECUTABLE"] = Path.Combine(gatePath, "gh.cmd"),
["BIFROST_REAL_GIT"] = ResolveRealGitExecutable(),
["BIFROST_NODE_EXECUTABLE"] = ResolveExecutable("node"),
["GIT_CONFIG_COUNT"] = "1",
["GIT_CONFIG_KEY_0"] = "core.hooksPath",
@ -455,8 +454,6 @@ exit /b 0
private static Dictionary<string, string?> BuildDispatchedGitGateEnv() => BuildDispatchedGitHookEnv();
private static string ResolveRealGitExecutable() => ResolveExecutable("git");
private static string ResolveExecutable(string command)
{
using var process = new Process