checkpatch: enable GIT_DIR environment use to set git repository location
authorJoe Perches <joe@perches.com>
Sat, 24 Oct 2020 23:59:04 +0000 (16:59 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 25 Oct 2020 18:36:33 +0000 (11:36 -0700)
commit0f7f635b06483f5204a70417ef6830af68185951
tree5e9722d24332d49ca2f387b08120f1ee701ffcb3
parent672f8871261597894d46454b8fa1660d6c952af6
checkpatch: enable GIT_DIR environment use to set git repository location

If set, use the environment variable GIT_DIR to change the default .git
location of the kernel git tree.

If GIT_DIR is unset, keep using the current ".git" default.

Link: https://lkml.kernel.org/r/c5e23b45562373d632fccb8bc04e563abba4dd1d.camel@perches.com
Signed-off-by: Joe Perches <joe@perches.com>
Tested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl