Preserve child working directory in environment overlays
This commit is contained in:
@@ -61,9 +61,16 @@ result. This repair requires no new credential restrictions or public API.
|
||||
|
||||
## R02. Original-object Git overlays retain the caller's PWD
|
||||
|
||||
**Priority:** P2. **Status:** Pending. This concerns the interaction of A02/A12
|
||||
**Priority:** P2. **Status:** Complete. This addressed the interaction of A02/A12
|
||||
with the existing process environment helper and native Git hooks.
|
||||
|
||||
**Completion:** Child overlays now start from `Cmd.Environ()` after setting
|
||||
`Dir`. Directory-derived `PWD`, explicit overrides/removals, and parent-state
|
||||
preservation have process regressions; a native Go pre-push hook verifies public
|
||||
publication from another directory. Both new regressions failed before the fix
|
||||
and pass afterward. Process, Go-tool, and Git suites passed under `-race`;
|
||||
public hook and original-object source/build eligibility regressions passed.
|
||||
|
||||
**Relevant code:** `run` in
|
||||
[internal/git/remote.go](../../internal/git/remote.go), lines 233–240;
|
||||
`newCommand` and `environmentEntries` in
|
||||
|
||||
Reference in New Issue
Block a user