summaryrefslogtreecommitdiffhomepage
path: root/misc/git_hook/githook
AgeCommit message (Collapse)AuthorFilesLines
2026-04-21misc/git_hook: fix building git_hook in a nested worktree (#19473)Fernando Serboncini1-1/+1
When the repo is checked out as a nested worktree, a go.work in the outer tree hijacks module resolution, which makes the rebuild fails with "main module does not contain package." Set GOWORK=off for the build since the hook is self-contained. Bumps HOOK_VERSION so existing installs pick up the fix. Updates #cleanup Change-Id: Ibd14849efc26e4e1893c5b8e300caa71573f54bd Signed-off-by: Fernando Serboncini <fserb@fserb.com.br>
2026-04-17misc/git_hook: extract shared githook package; auto-rebuild on version bump ↵Fernando Serboncini6-0/+508
(#19440) Pull the hook logic into a reusable githook library package so tailscale/corp can share it via a thin wrapper main instead of keeping a forked copy in sync. The install flow also changes: a wrapper scripts now build the binary and reinstall the git hooks. Pulling new shared code no longer requires re-running the installer. Updates tailscale/corp#39860 Change-Id: I4d606d11c8c883015c190c54e3387a7f9fe4dd32 Signed-off-by: Fernando Serboncini <fserb@tailscale.com>