Commit a2700dd
Fix ENOENT crash when hooks directory does not exist
Create the hooks directory before writing the pre-push hook file,
preventing a crash when core.hooksPath points to a missing directory.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 382c256 commit a2700dd
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
101 | 104 | | |
102 | 105 | | |
103 | 106 | | |
| |||
0 commit comments