Fix patch receive destination preflight #81
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "agent/patch-receive-dest-preflight"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes allod/tools#80.
Summary
patch receivestarts remote fetch work.patch applyhard-exit on destination resolution failure even when invoked under disablederrexit.Risk
Low. The behavior change is limited to earlier failure for invalid patch destination paths; valid receive/apply flows continue through the existing artifact and identity checks.
Validation
patch receivefetched an artifact, then reported a destination path error followed by a misleading repo identity mismatch against the caller cwd repo.bash -n allodbash -n tests/allod-patch.shbash tests/allod-patch.shmapfile -t tests_to_run < <(find tests -type f -name '*.sh' | sort); for test in "${tests_to_run[@]}"; do bash "$test" </dev/null; donegit diff --checkshellcheckwas not installed in the environment.