[PATCH] devtools: honor -n flag regardless of stdin state

Thomas Monjalon thomas at monjalon.net
Thu Oct 23 16:33:43 CEST 2025


14/10/2025 09:43, Ali Alnubani:
> 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 flag before checking stdin
> state. This ensures the -n flag takes precedence and the script checks
> git commits as intended.
> 
> Signed-off-by: Ali Alnubani <alialnu at nvidia.com>

Applied, thanks.




More information about the dev mailing list