Skip to content

v0.4.2 — install.ps1 git-hook path fix

Latest

Choose a tag to compare

@tmcfarlane tmcfarlane released this 28 Jun 21:30
· 44 commits to main since this release
5bad458

Patch on v0.4.1.

Fixed

  • install.ps1 could write the git pre-commit hook to the wrong directory. The v0.4.1 installer detected the hook path with PowerShell cmdlets (location-aware) but wrote it via [IO.File]::WriteAllText, which resolves relative paths against .NET's CurrentDirectory — not PowerShell's location. When those diverged, the hook landed in the wrong place. Now resolves an absolute git dir (git rev-parse --absolute-git-dir) so the write is cwd-independent; mirrored in install.sh for parity.

Verified on PowerShell 7.6.3: install / idempotent re-install / skip-existing-non-OMC / dry-run / LF-only endings all pass.

The fix already reached users via the documented curl|bash / irm|iex one-liners (they pull from main); this release just tags it.

Full changelog: https://github.com/tmcfarlane/oh-my-cursor/blob/main/CHANGELOG.md

🤖 Generated with Claude Code