{"name":"CDPATH","slug":"cdpath","family":"env","title":"Environment variables","noun":"environment variable","description":"Claude Code now scans environment variables and git flags for tricks that redirect where git actually operates","description_source":"entry","described_by":{"version":"2.1.275","anchor":"git-related-environment-variables-and-cli-flags-now-get-patt"},"presence":{"first_seen":"2.1.275","removed_in":null,"in_current_build":true,"newest_mined":"2.1.322","builds":43,"mined_builds":161,"first_cited":null},"aliases":[],"entries":[{"version":"2.1.310","anchor":"git-subprocess-env-scrubbing-now-also-strips-git-template-di","heading":"Git commands no longer inherit GIT_TEMPLATE_DIR or ARGV0 in some cases","line":"Claude Code now also removes `GIT_TEMPLATE_DIR` and `ARGV0` from the environment it hands to git, under a specific condition","released_at":"2026-10-23 21:20:46","reason":"found in this entry's text"},{"version":"2.1.275","anchor":"git-related-environment-variables-and-cli-flags-now-get-patt","heading":"Git-related environment variables and CLI flags now get pattern-matched for hardening","line":"Claude Code now scans environment variables and git flags for tricks that redirect where git actually operates","released_at":"2026-09-17 20:20:31","reason":"found in this entry's text"}],"entries_total":2,"docs":[],"docs_total":0,"gates":[],"related":[],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/cdpath","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}