tools/checkpatch.sh: fix check for HEAD commit
fix checkpath.sh usage for HEAD commit:
./tools/checkpatch.sh -c -u -m -g HEAD
regression after 93911d52a8
Signed-off-by: raiden00pl <raiden00@railab.me>
This commit is contained in:
parent
5592dc75dc
commit
4b1b3c58a0
1 changed files with 1 additions and 1 deletions
|
|
@ -342,7 +342,7 @@ check_msg() {
|
|||
check_commit() {
|
||||
if [ $message != 0 ]; then
|
||||
# check each commit format separately if this is a series of commits
|
||||
if [[ $1 =~ HEAD ]]; then
|
||||
if [[ $1 =~ ..HEAD ]]; then
|
||||
for commit in $(git rev-list --no-merges $1); do
|
||||
msg=`git show -s --format=%B $commit`
|
||||
check_msg <<< "$msg"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue