YoshiRulz
a329d076f0
Improve dev-facing error message in Git hook install script
2024-06-21 23:54:47 +10:00
YoshiRulz
4e659d810b
Use Git hook name without file extension for messages
2024-06-09 22:29:54 +10:00
YoshiRulz
65219d03e6
Fix Git hook installation flagging matching script as mismatch
...
fixes 124a1ea50
2024-06-09 22:29:54 +10:00
YoshiRulz
2b05071493
Revert "Add some prints to Git hook installation script for GitHub Actions"
...
This reverts commit 8e6351e88c
.
2024-06-09 22:20:58 +10:00
YoshiRulz
8e6351e88c
Add some prints to Git hook installation script for GitHub Actions
2024-06-09 22:20:43 +10:00
YoshiRulz
c5f6dcd4e8
Make PowerShell strictly optional for Git hooks
...
...and remove auto-`dotnet tool restore`. If you don't have PowerShell
on `$PATH`/`%PATH%`, Git hooks will simply not be ran.
I still intend to migrate the rest of `/Dist` to PowerShell. Undecided
on unmanaged cores and wbox.
2024-06-09 12:51:32 +10:00
YoshiRulz
1d46919f6a
Enable custom scripts to run on Git hooks
2024-06-09 12:48:11 +10:00
YoshiRulz
124a1ea509
Simplify Git hook installation
2024-06-09 12:48:06 +10:00
YoshiRulz
ffa5bb9b74
Use a polyglot BASH/Batch script as a shim for the Git commit hook
2024-06-08 14:28:38 +10:00
YoshiRulz
84e337b05c
Fix `install_git_hooks.ps1` failing when target file doesn't exist
...
fixes 5c3171171
of course I covered every case but the obvious one
2024-06-07 15:54:39 +10:00
YoshiRulz
5c31711710
Automatically install client-side Git hooks
...
This is how npm-style RCE hacks happen by the way. You should all be
vetting `dotnet-tools.json` and all MSBuild and PowerShell scripts.
2024-06-07 15:39:44 +10:00