Use login shell PATH for extension hooks
Some checks failed
Weekly OSV dependency audit / dependency-audit (push) Failing after 5s
Some checks failed
Weekly OSV dependency audit / dependency-audit (push) Failing after 5s
This commit is contained in:
@@ -849,7 +849,7 @@ fn run_hook(
|
||||
.args(&argv[1..])
|
||||
.current_dir(&project_root)
|
||||
.env_clear()
|
||||
.env("PATH", std::env::var_os("PATH").unwrap_or_default())
|
||||
.env("PATH", crate::agent::shell_path())
|
||||
.env("HOME", &home)
|
||||
.env("TMPDIR", &temporary)
|
||||
.env("XDG_CONFIG_HOME", &config)
|
||||
|
||||
Reference in New Issue
Block a user