Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(dev): cover ~/.gitconfig.local in dev sandbox git-config rules (#65890)

Tom Piccirellod5581139e928
diff --git a/bin/dev-sandbox.sb b/bin/dev-sandbox.sb
index e770ced23364..a7becba2e7ae 100644
--- a/bin/dev-sandbox.sb
+++ b/bin/dev-sandbox.sb
@@ -71,6 +71,7 @@
;; only, by exact path — credentials (~/.git-credentials, keychain) stay blocked.
(literal (string-append (param "HOME") "/.gitconfig"))
(literal (string-append (param "HOME") "/.config/git/config"))
+ (literal (string-append (param "HOME") "/.gitconfig.local")) ; common [include] target of ~/.gitconfig
;; cargo registry/git cache — the cyclotron-node native module is built with
;; cargo during the nodejs service prestart. (crates.io token re-denied below.)
(subpath (string-append (param "HOME") "/.cargo")))
@@ -111,5 +112,6 @@
(subpath (string-append (param "PROJECT") "/.git/hooks")) ; git hooks run unsandboxed
(subpath (string-append (param "MAINREPO") "/.git/hooks")) ; worktree main-repo hooks
(literal (string-append (param "HOME") "/.gitconfig")) ; core.hooksPath / credential.helper = !cmd
+ (literal (string-append (param "HOME") "/.gitconfig.local")) ; included by ~/.gitconfig — same escape if writable
(subpath (string-append (param "HOME") "/.config/git")) ; XDG git config — same hooksPath/helper escape
(subpath (string-append (param "HOME") "/.cargo/bin"))) ; binaries on PATH