mirror of
https://github.com/Matysh/houseplan-card
synced 2026-09-29 03:09:36 +00:00
15 lines
398 B
Bash
Executable File
15 lines
398 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
|
|
message_file=$1
|
|
|
|
# Git-generated merge commits do not represent an independently authored
|
|
# product change and inherit provenance from their parents.
|
|
case "$(basename "$message_file")" in
|
|
MERGE_MSG) exit 0 ;;
|
|
esac
|
|
|
|
repo_root=$(git rev-parse --show-toplevel)
|
|
node "$repo_root/scripts/validate-commit-provenance.mjs" \
|
|
--message-file "$message_file" --staged --check-hook-mode
|