Tracked repos are shallow blob:none partial clones, so they lack the
blobs of intermediate commits. Since git 2.45.1, a local upload-pack
refuses to lazy-fetch missing objects, so both the candidate clone and
the publish fetch back into the checkout failed with "fetch-pack:
invalid index-pack output" once more than one upstream commit arrived.
Re-enable lazy fetching only for these two local transports, whose
source is our own checkout, and pass origin's auth env so private
repos can supply the blobs. Fetched blobs are hash-addressed, so the
published tree still matches the audited revision.
Closes#667
* fix(update): audit tracked candidates before publication
Prevent rejected tracked-update bytes from becoming readable through published target links by staging and auditing a private candidate before updating the active checkout. Publish the exact approved revision without a second upstream pull.
Preserve sparse state, audit metadata, followed checkouts, and compatible edits. Recover staged and unstaged changes after failed forced publication, including deletions, renames, and sparse exclusions. Cover the boundary deterministically and align error messages and localized documentation.
* fix(update): preserve local bytes across Git line-ending conversion
Overlay dirty worktree bytes after staging candidate patches so core.autocrlf does not silently rewrite local edits. Cover staged, unstaged, and cancelled worktree changes while retaining their index state.
Make permission-failure coverage explicitly POSIX-only and compare private checkout contents to their original bytes. Align red-team assertions with candidate rejection and register private temporary cleanup with the raw-write guard.
* test(install): normalize checkout after configuring line endings
Windows fixtures initially inherit core.autocrlf=true. Reset the isolated checkout after selecting the subtest setting so changing it to false does not turn untouched upstream files into local edits.