xref: /aosp_15_r20/external/flashrom/util/git-hooks/applypatch-msg (revision 0d6140be3aa665ecc836e8907834fcd3e3b018fc)
1*0d6140beSAndroid Build Coastguard Worker#!/bin/sh
2*0d6140beSAndroid Build Coastguard Worker#
3*0d6140beSAndroid Build Coastguard Worker# A hook script to check the commit log message taken by
4*0d6140beSAndroid Build Coastguard Worker# applypatch from an e-mail message (via git-am).
5*0d6140beSAndroid Build Coastguard Worker# We simply do the same as for other commit messages
6*0d6140beSAndroid Build Coastguard Worker#
7*0d6140beSAndroid Build Coastguard Worker# The hook should exit with non-zero status after issuing an
8*0d6140beSAndroid Build Coastguard Worker# appropriate message if it wants to stop the commit.  The hook is
9*0d6140beSAndroid Build Coastguard Worker# allowed to edit the commit message file.
10*0d6140beSAndroid Build Coastguard Worker#
11*0d6140beSAndroid Build Coastguard Worker
12*0d6140beSAndroid Build Coastguard Worker. git-sh-setup
13*0d6140beSAndroid Build Coastguard Workertest -x "$GIT_DIR/hooks/commit-msg" &&
14*0d6140beSAndroid Build Coastguard Worker	exec "$GIT_DIR/hooks/commit-msg" ${1+"$@"}
15*0d6140beSAndroid Build Coastguard Worker:
16