Skip to content

Commit

Permalink
Do not run pre-commit during merge
Browse files Browse the repository at this point in the history
  • Loading branch information
danenbm committed Jul 2, 2024
1 parent 5fea404 commit 3a8b45d
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

# Exit if a merge is in progress
if [ -f .git/MERGE_HEAD ]; then
exit 0
fi

set +e

# Stash un-staged changes
Expand Down

0 comments on commit 3a8b45d

Please sign in to comment.