Re: [PATCH] checkpatch.pl: perform commit ID check from external to git folder

From: Joe Perches
Date: Thu Jun 11 2020 - 14:22:46 EST


On Thu, 2020-06-11 at 15:59 +0300, Leon Romanovsky wrote:
> From: Leon Romanovsky <leonro@xxxxxxxxxxxx>
>
> The execution of scripts/checkpatch.pl in folder outside of git produces
> complains about invalid commit ID, despite having valid one.

There is already a slightly different test for this in -next
It also uses a environment test for GIT_DIR.

Try that one.