fix(agents): chain AGENTS git hooks to global core.hooksPath

The local core.hooksPath override set by agents-init shadowed the user's
global hooks (ggshield, Git LFS) since git honors only one hooksPath. Each
shim now execs the global/system hook of the same name after running
version-bump, so global hooks still run after version increment. Bumped the
agents-tools version marker to 2 so existing AGENTS repos refresh.
This commit is contained in:
2026-06-17 22:39:18 -04:00
parent c7d1e642e5
commit c3e39b7a96
5 changed files with 41 additions and 12 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# agents-tools-version: 1
# agents-tools-version: 2
# Copyright (C) 2026 Rootiest
# SPDX-License-Identifier: AGPL-3.0-or-later
#