mirror of
https://github.com/bitwarden/server.git
synced 2026-02-17 22:33:28 +08:00
Skip merge commits with hook
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Skip hook if this is a merge commit
|
||||
if [ -f .git/MERGE_HEAD ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
FILES=$(git diff --cached --name-only --diff-filter=ACMR | sed 's| |\\ |g')
|
||||
[ -z "$FILES" ] && exit 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user