abhay-codes07
b09c839eb3
fix(hooks): a graphify skip must not terminate the whole git hook ( #2986 )
...
The generated post-commit / post-checkout block is appended to whatever
hook a repo already has, and other tools chain their logic after it. Every
skip condition in the block was a bare `exit 0`, which in a flat sh script
ends the ENTIRE hook process — so anything after graphify's end marker
was silently dropped on every root commit (HEAD~1 does not exist), every
rebase/merge/cherry-pick, every linked worktree, every GRAPHIFY_SKIP_HOOK=1
and whenever no graphify-capable python could be found.
Both bodies now run inside a subshell `( ... )`, so an `exit` ends only
graphify's section: no rewriting of the seventeen skip sites, no
`return`-outside-a-function hazard for the _PYTHON_DETECT fragment that
tests run standalone, the detached rebuild launch unaffected, and the
hook's own exit status 0 as before. The markers stay outside the subshell
so reinstall/uninstall/status keep finding the block.
(cherry picked from commit 6f09919f10 )
2026-09-06 16:17:37 +01:00
..
2026-08-30 15:14:33 +01:00
2026-08-12 20:56:28 +01:00
2026-08-15 17:16:53 +01:00
2026-08-13 14:17:41 +01:00
2026-08-12 20:57:39 +01:00
2026-09-05 01:18:59 +01:00
2026-09-05 01:18:59 +01:00
2026-09-06 16:17:36 +01:00
2026-08-12 14:20:21 +01:00
2026-08-25 18:06:46 +01:00
2026-09-05 21:22:13 +01:00
2026-08-21 19:21:20 +01:00
2026-08-28 01:20:10 +01:00
2026-09-05 21:55:34 +01:00
2026-09-05 01:18:59 +01:00
2026-08-29 19:32:51 +01:00
2026-08-28 01:19:45 +01:00
2026-08-18 16:02:02 +01:00
2026-08-20 15:42:36 +01:00
2026-08-12 20:56:28 +01:00
2026-09-02 14:58:01 +01:00
2026-08-24 14:12:53 +01:00
2026-09-05 01:18:59 +01:00
2026-08-25 15:45:06 +01:00
2026-08-21 16:50:25 +01:00
2026-08-24 13:22:09 +01:00
2026-08-18 18:07:12 +01:00
2026-08-24 14:08:25 +01:00
2026-08-24 13:17:23 +01:00
2026-08-17 15:35:53 +01:00
2026-09-05 21:55:33 +01:00
2026-09-02 03:05:59 +01:00
2026-08-25 15:52:10 +01:00
2026-08-29 18:38:33 +01:00
2026-09-05 01:18:59 +01:00
2026-08-20 16:09:00 +01:00
2026-08-14 14:26:12 +01:00
2026-08-18 22:27:27 +01:00
2026-08-21 19:21:20 +01:00
2026-08-28 01:20:57 +01:00
2026-09-05 21:55:34 +01:00
2026-08-27 20:20:16 +01:00
2026-09-05 21:55:33 +01:00
2026-08-25 18:09:25 +01:00
2026-08-16 18:35:46 +01:00
2026-09-02 14:49:03 +01:00
2026-08-28 01:20:27 +01:00
2026-09-06 16:17:37 +01:00
2026-08-30 15:11:40 +01:00
2026-08-30 15:11:40 +01:00
2026-08-19 14:05:58 +01:00
2026-09-06 16:17:37 +01:00
2026-08-16 18:28:53 +01:00
2026-08-17 19:00:46 +01:00
2026-08-17 15:40:19 +01:00
2026-08-18 22:20:19 +01:00
2026-09-05 21:55:33 +01:00
2026-08-13 14:21:22 +01:00
2026-08-11 15:18:33 +01:00
2026-08-11 16:54:35 +01:00
2026-08-15 16:43:11 +01:00
2026-08-13 13:30:24 +01:00
2026-08-15 20:11:13 +01:00
2026-08-18 16:02:02 +01:00
2026-09-05 01:18:59 +01:00
2026-08-29 16:14:47 +01:00
2026-08-30 15:11:24 +01:00
2026-08-13 14:17:42 +01:00
2026-08-16 18:34:11 +01:00
2026-08-30 15:11:40 +01:00
2026-08-29 18:36:56 +01:00
2026-08-29 16:14:47 +01:00
2026-08-14 14:49:56 +01:00
2026-08-12 14:20:21 +01:00
2026-08-21 16:49:55 +01:00
2026-08-20 16:10:36 +01:00
2026-09-02 04:00:08 +01:00
2026-08-20 15:45:18 +01:00
2026-08-20 15:44:56 +01:00
2026-08-11 16:54:35 +01:00
2026-09-05 01:19:09 +01:00
2026-08-25 18:09:58 +01:00
2026-08-29 19:32:44 +01:00
2026-08-20 16:13:45 +01:00
2026-08-13 14:20:36 +01:00
2026-08-29 16:14:29 +01:00
2026-08-19 14:05:58 +01:00
2026-08-21 19:22:21 +01:00
2026-08-14 21:09:32 +01:00
2026-08-21 16:57:29 +01:00
2026-09-05 21:13:54 +01:00
2026-08-19 14:05:58 +01:00
2026-08-21 16:57:29 +01:00
2026-08-21 16:50:44 +01:00
2026-08-25 15:44:52 +01:00
2026-08-29 16:15:58 +01:00
2026-08-12 14:20:21 +01:00
2026-09-05 21:55:35 +01:00
2026-08-17 15:33:34 +01:00
2026-08-13 13:30:24 +01:00
2026-09-05 21:55:32 +01:00
2026-08-18 22:36:42 +01:00
2026-09-05 21:13:53 +01:00
2026-08-17 15:25:39 +01:00
2026-08-30 15:11:24 +01:00
2026-08-13 13:30:24 +01:00
2026-08-25 18:12:02 +01:00
2026-08-29 18:38:05 +01:00
2026-09-05 01:18:59 +01:00
2026-08-25 18:07:40 +01:00
2026-08-28 01:18:04 +01:00
2026-08-18 16:02:02 +01:00
2026-09-05 21:55:36 +01:00
2026-08-30 15:48:40 +01:00
2026-08-27 20:57:16 +01:00
2026-08-29 16:16:09 +01:00
2026-08-25 15:45:33 +01:00
2026-08-30 15:12:10 +01:00
2026-09-05 21:55:35 +01:00
2026-08-14 14:21:34 +01:00
2026-08-30 15:11:23 +01:00
2026-08-14 14:20:04 +01:00