d05d6623d1cfb8ac0eff38f7cffd23dba3b38438
.husky/pre-push's unset GIT_DIR ..., and measure why it matters
The one-line fix at pre-push:11 had nothing pinning it, and #785 ranks it third because the regression is a relocation rather than a deletion — a tidy-up that reads as a no-op. What the investigation established, since the comment above it asserts the mechanism without stating when it applies (git 2.55): * git exports GIT_DIR to pre-push when the push comes FROM A WORKTREE, and exports nothing from the main tree. `process.shared-tree-readonly` makes the worktree the mandated way to work here, so the exposed path is the normal one, not an edge case. * with GIT_DIR set and GIT_WORK_TREE unset, git stops discovering the repo and treats the CURRENT DIRECTORY as the work tree: `git rev-parse --show-toplevel` from web/ answers `<wt>/web`. * so `cd web && npm run check:api`'s `git diff --exit-code` compares against index paths that do not exist there and reports NO DIFF, exit 0. Generated-API drift ships and the gate prints success. The test drives the real pre-push file unedited, in a real worktree, with that exact environment; the hook calls are stubs (DERIVED from the file, so a new hook cannot leave the harness dying at a missing script and calling that a red) and `npm` is a stand-in whose `run check:api` performs the nested diff. Both mutations witnessed red against the real file: deletion -> 4 failed, 5 passed; relocation to the end -> 5 failed, 4 passed. The relocation mutation was wrong in the first draft. Appending the `unset` at the end also makes it the script's last statement, and a bare `unset` succeeds — so a `returncode == 0` assertion held for a reason unrelated to the nested git call. The stand-in npm now records the nested diff's OWN exit code and the mutations assert on that. Verified by making the mutation a no-op: the test fails, as it must. Refs: #785 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
fix(754,757): declare graphicsElementIds + padToNearestMinute, and pin every MCP tool to its OpenAPI contract (#760)
fix(754,757): declare graphicsElementIds + padToNearestMinute, and pin every MCP tool to its OpenAPI contract (#760)
feat(779): test the deny path at the production config value, and derive full-replace field lists (#808)
ErsatzTV
ErsatzTV lets you transform your media library into a personalized, live TV experience - complete with EPG, channel scheduling, and seamless streaming to all your devices. Rediscover your content, your way.
How It Works
- Install ErsatzTV: Download and set up the server on your system.
- Add Your Media: Connect your media libraries and collections.
- Create Channels: Design and schedule your own live channels.
- Stream Anywhere: Watch on any device with IPTV and EPG support.
Key Features
- Custom channels: Create and schedule your own live TV channels.
- IPTV & EPG: Stream with IPTV and Electronic Program Guide support.
- Hardware Transcoding: High-performance streaming with hardware acceleration (NVENC, QSV, VAAPI, AMF, VideoToolbox)
- Media Server Integration: Connect Plex, Jellyfin, Emby and more.
- Music & Subtitles: Mix music videos and enjoy subtitle support.
- Open Source: Free, open, and community-driven project.
Documentation
Documentation is available at ersatztv.org.
License
This project is inspired by pseudotv-plex and the dizquetv fork and is released under the zlib license.
