fix: fixed pre and post commit hook behavior

This commit is contained in:
Leyla Becker 2025-10-20 20:55:35 -05:00
parent 290c0692bb
commit f21777b1fb
4 changed files with 48 additions and 16 deletions

View file

@ -17,8 +17,8 @@ fi
if [ "$target_branch" = "main" ]; then
echo "Merging into main branch - running nix flake check..."
echo "stashing all uncommitted changes"
git stash -q --keep-index
echo "stashing all uncommitted changes with named stash (excluding hooks)"
git stash push -q --keep-index -m "pre-merge-stash-$(date +%s)" -- ':!.hooks/'
echo "checking flakes all compile"
nix flake check