Skip to content

Commit

Permalink
chore(tools): skip pre-commit hook during merge (#11281)
Browse files Browse the repository at this point in the history
skip pre-commit hook during merge
  • Loading branch information
brainbicycle authored Dec 12, 2024
1 parent 01b0e2f commit 2b8050f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

# Skip pre-commit during a merge
if git rev-parse -q --verify MERGE_HEAD > /dev/null 2>&1; then
echo "Merge in progress; skipping pre-commit hook."
exit 0
fi

yarn lint-staged

0 comments on commit 2b8050f

Please sign in to comment.