bastion 0.55.3
ci / personal-data (push) Successful in 5s
ci / test (push) Successful in 3m51s
ci / fuzz (push) Successful in 2m55s

This commit is contained in:
Privatae
2026-10-25 23:16:45 +00:00
parent 77b7853ae1
commit 8822d5df85
136 changed files with 8638 additions and 1641 deletions
+3 -2
View File
@@ -246,11 +246,12 @@ func mirrorVetHost(ctx context.Context, host string) (string, error) {
return ips[0].String(), nil
}
// runGitEnv runs git with a clean, locked-down config and extra env.
// runGitEnv runs git with a clean, locked-down config and extra env, and
// with harnessGitSafe ahead of the caller's arguments.
func runGitEnv(timeout time.Duration, env []string, args ...string) (string, error) {
ctx, cancel := context.WithTimeout(context.Background(), timeout)
defer cancel()
cmd := exec.CommandContext(ctx, "git", args...)
cmd := exec.CommandContext(ctx, "git", append(append([]string{}, harnessGitSafe...), args...)...)
hideConsole(cmd)
home, _ := os.MkdirTemp("", "privatae-mirror-home-")
defer os.RemoveAll(home)