git-remote-entire: regression test for helper-status on send-pack error

main

Commit

pjbgf3mo ago

handlePush relays send-pack's helper-status lines to stdout before checking the subprocess exit code, so per-ref rejections (branch protection, D/F conflict, server hook decline) reach git's transport-helper.c and render as ! [remote rejected] <ref> (<reason>). Pin that ordering: a PATH-injected shell stub plays the role of git send-pack, emits an empty wrapped request followed by a trailing flush + error <ref> ... helper-status line, and exits 1. The test asserts that handlePush both returns the exit error AND has already written the helper-status to stdout. Verified failing against the pre-fix push.go (helperStatus empty in stdout).

Assisted-by: Claude Opus 4.7 noreply@anthropic.com Signed-off-by: Paulo Gomes paulo@entire.io Entire-Checkpoint: d814978a0c6c

Checkpoints

Fix Git Remote Helper Status Relay

Claude CodeOpus 4.7[1m]
View session
Checkpoint 1