1
0
mirror of https://github.com/j178/prek.git synced 2026-04-09 01:52:24 +02:00
Files
prek/tests
Jo 442d88d7d7 Use relative path with --cd in the generated hook script (#868)
* Use relative path with `--cd` in generated hook script

Use a relative path with `--cd` in the generated hook script to avoid switching to the original worktree.

Also, unset `GIT_DIR` in the hook script so git doesn’t treat the current directory (after the cd) as the git root.

* Fix snapshots

* Add tests
2025-10-13 21:42:02 +08:00
..
2025-10-10 21:11:31 +08:00
2025-10-01 21:22:54 +08:00
2025-10-10 21:11:31 +08:00