Repository navigation
v2.66.2 - audit works in pre-commit hooks
Bug fixes
-
fallow auditnow works insidepre-commitandpre-pushhooks. When git runs hooks, it exports ambient repository-state environment variables into the hook subprocess:GIT_INDEX_FILE=.git/index(a relative path), plusGIT_PREFIXand friends. Audit'sgit worktree addwas inheriting those, and the relativeGIT_INDEX_FILEfailed to resolve from the temporary worktree directory, so worktree creation aborted withcould not create a temporary worktree for base ref 'main'. The published workaround wasenv -u GIT_INDEX_FILE fallow audit; that's no longer necessary.Every production
gitinvocation in fallow now strips the documented set of ambient repo-state variables (GIT_DIR,GIT_WORK_TREE,GIT_INDEX_FILE,GIT_OBJECT_DIRECTORY,GIT_COMMON_DIR,GIT_PREFIX) via a shared helper. lint-staged, husky, lefthook, and thepre-commitframework all work transparently. The same robustness applies to churn / hotspot analysis, regression baselines, coverage uploads, init's branch detection, and vital signs. The worktree-creation error also surfaces a hint when an ambient repo-state variable is detected, so users on older fallow versions can self-rescue.
Full Changelog: v2.66.1...v2.66.2