Re: [PATCH v2] checkpatch.pl: warn on invalid commit id

From: Andrew Morton
Date: Thu Jul 25 2019 - 21:25:27 EST


On Fri, 26 Jul 2019 03:17:32 +0200 Matteo Croce <mcroce@xxxxxxxxxx> wrote:

> > > If .git is not found, the check is disabled
> >
> > We could permit user to set an environment variable to tell checkpatch
> > where the kernel git tree resides.
> >
>
> Maybe GIT_DIR already does it.

Yes, that works. GIT_DIR=<wherever>/.git