fix(agents-tools): never block commits on missing bumper; robust .version parse

This commit is contained in:
2026-06-17 21:38:03 -04:00
parent 5cbb01497c
commit 58e21eba95
4 changed files with 46 additions and 7 deletions
+5 -1
View File
@@ -1,3 +1,7 @@
#!/usr/bin/env bash
# agents-tools-version: 1
exec "$(git rev-parse --show-toplevel)/.agents-tools/version-bump" precommit
# Delegates to the repo's committed .agents-tools/version-bump. Guarded so a
# missing script or failed rev-parse never blocks the commit (always exit 0).
root="$(git rev-parse --show-toplevel 2>/dev/null)" || exit 0
[ -x "$root/.agents-tools/version-bump" ] && "$root/.agents-tools/version-bump" precommit
exit 0