Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

documentation-file-ref-check: Make git check work for multiple working directories

With multiple git working directories, '.git' may also be a text file
linking to the actual git tree instead of a directory.

Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: linux-doc@vger.kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Tested-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Link: https://lore.kernel.org/r/20210603012806.331132-1-robh@kernel.org
Signed-off-by: Jonathan Corbet <corbet@lwn.net>

authored by

Rob Herring and committed by
Jonathan Corbet
709dedfd c003555a

+1 -1
+1 -1
scripts/documentation-file-ref-check
··· 24 24 my $fix = 0; 25 25 my $warn = 0; 26 26 27 - if (! -d ".git") { 27 + if (! -e ".git") { 28 28 printf "Warning: can't check if file exists, as this is not a git tree\n"; 29 29 exit 0; 30 30 }