Skip to content

Commit 1bc963b

Browse files
committed
Reintegrate: check coccicheck-pending, too
1 parent 322e6dc commit 1bc963b

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

Reintegrate

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,17 @@ no)
177177
else
178178
rm -f contrib/coccinelle/*.patch
179179
Meta/Make -j8 coccicheck
180-
cat contrib/coccinelle/*.patch | git apply --index ||
181-
exit
180+
if grep coccicheck-pending Makefile >/dev/null
181+
then
182+
Meta/Make -j8 coccicheck-pending
183+
fi
184+
cat contrib/coccinelle/*.patch >cocci.patch
185+
if ! test -s cocci.patch
186+
then
187+
exit 0
188+
fi
189+
git apply --index -3 cocci.patch || exit
190+
rm cocci.patch
182191
git diff --quiet HEAD && continue
183192
fi
184193
git commit -m "$cocci_mark" || exit

0 commit comments

Comments
 (0)