Repository navigation
v0.4.1
Release v0.4.1
Date: 2026-05-28
inside an HTML comment so release-gh can remind you after publishing.Published raw URL base: https://raw.githubusercontent.com/HexmosTech/git-lrc/refs/heads/main/docs/releases/img/v0.4.1/
Published raw URL example: https://raw.githubusercontent.com/HexmosTech/git-lrc/refs/heads/main/docs/releases/img/v0.4.1/demo.png
-->
Summary
This release fixes a Claude Code linked-worktree regression introduced on the Claude hook surface in v0.4.0.
If a Claude session was started from a main checkout and you later ran git commit inside a linked worktree, the Claude blocking-review wrapper could jump back to the main checkout before checking attestation state or running the final commit. That made valid worktree attestations look missing, broke disabled-claude handling in the worktree, and could send the final commit to the wrong checkout.
In v0.4.1, the Claude wrapper now runs review and commit operations from the actual directory where git commit was invoked.
Install and Update
New install:
# Linux/macOS
curl -L https://hexmos.com/ipm-install | bash && ipm i HexmosTech/git-lrc
# Windows
iwr https://hexmos.com/ipm-install-ps | iex; ipm i HexmosTech/git-lrc
Update:
lrc self-update
Changes
- Fixed
lrc hooks install --surface claudefor linked worktrees so the Claude blocking-review wrapper uses thegit commitinvocation directory instead of the Claude session'sCLAUDE_PROJECT_DIR. - Fixed Claude-triggered
git commitin linked worktrees to reuse existing worktree attestations correctly instead of failing withError: no diff content collectedwhen the main checkout had no staged changes. - Fixed
lrc hooks disable --surface claudein linked worktrees so thedisabled-claudemarker is read from the active worktree git dir rather than the main checkout's git dir. - Fixed the final Claude-wrapped
git commitstep so the commit lands in the worktree where the command was issued, not in the main checkout. - Added focused generator coverage and an end-to-end Claude linked-worktree regression test to keep this path from regressing again.
Breaking Changes
- None.
Known Issues
- None.