[PATCH v2] devtools: check patch from stdin only if nothing else

Thomas Monjalon thomas at monjalon.net
Sat Nov 29 20:05:38 CET 2025


28/11/2025 15:40, Thomas Monjalon:
> From: Ali Alnubani <alialnu at nvidia.com>
> 
> The checkpatches.sh script was checking if stdin is a terminal before
> honoring the -n flag, causing it to incorrectly attempt to read patches
> from stdin when run without a TTY (e.g., in Jenkins/CI pipelines).
> 
> Reorder the conditionals to check for the -n and -r flags
> before checking stdin state.
> This ensures the -n/-r flags takes precedence
> and the script checks git commits as intended.
> 
> Signed-off-by: Ali Alnubani <alialnu at nvidia.com>
> Signed-off-by: Thomas Monjalon <thomas at monjalon.net>

Applied





More information about the dev mailing list