]> git.ipfire.org Git - thirdparty/git.git/commitdiff
coccicheck: emit the contents of cocci patch
authorJunio C Hamano <gitster@pobox.com>
Sat, 13 Dec 2025 01:46:27 +0000 (10:46 +0900)
committerJunio C Hamano <gitster@pobox.com>
Sat, 13 Dec 2025 01:47:59 +0000 (10:47 +0900)
Telling the user "you got some error messages" without showing what
the errors are is almost useless in CI environment, as the errors
cannot be examined without downloading build artifacts.

Arrange it to spew out the output when it fails.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile

index 7ca21188138acefea691412b2333b144c299f616..0117d0008c71b40b9459e1107b7ee85aebbb04ee 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3521,7 +3521,7 @@ else
 COCCICHECK_PATCH_MUST_BE_EMPTY_FILES = $(COCCICHECK_PATCHES_INTREE)
 endif
 coccicheck: $(COCCICHECK_PATCH_MUST_BE_EMPTY_FILES)
-       ! grep -q ^ $(COCCICHECK_PATCH_MUST_BE_EMPTY_FILES) /dev/null
+       ! grep ^ $(COCCICHECK_PATCH_MUST_BE_EMPTY_FILES) /dev/null
 
 # See contrib/coccinelle/README
 coccicheck-pending: coccicheck-test