Re: [PATCH] scripts: allow checkpatch and get_maintainer in sparse checkouts

From: Joe Perches

Date: Sun Apr 05 2026 - 15:12:24 EST


On Mon, 2026-04-06 at 02:55 +0800, CaoRuichuang wrote:
> checkpatch.pl and get_maintainer.pl currently reject sparse checkouts because top_of_kernel_tree() insists on top-level directories such as arch/, drivers/ and fs/ being present in the working tree.

So add / use the command-line --notree option instead ?