aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/documentation-file-ref-check
diff options
context:
space:
mode:
authorRob Herring <[email protected]>2021-06-03 01:28:06 +0000
committerJonathan Corbet <[email protected]>2021-06-04 17:20:52 +0000
commit709dedfdf3daa8719240ecff1c0b70b278005386 (patch)
tree7a74f61b01d46f94711e7a4b418b0c93fcaf8269 /scripts/documentation-file-ref-check
parentdocs/zh_CN: add translations in zh_CN/dev-tools/kasan (diff)
downloadkernel-709dedfdf3daa8719240ecff1c0b70b278005386.tar.gz
kernel-709dedfdf3daa8719240ecff1c0b70b278005386.zip
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 <[email protected]> Cc: Jonathan Corbet <[email protected]> Cc: [email protected] Signed-off-by: Rob Herring <[email protected]> Reviewed-by: Mauro Carvalho Chehab <[email protected]> Tested-by: Mauro Carvalho Chehab <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Corbet <[email protected]>
Diffstat (limited to 'scripts/documentation-file-ref-check')
-rwxr-xr-xscripts/documentation-file-ref-check2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/documentation-file-ref-check b/scripts/documentation-file-ref-check
index c71832b2312b..7187ea5e5149 100755
--- a/scripts/documentation-file-ref-check
+++ b/scripts/documentation-file-ref-check
@@ -24,7 +24,7 @@ my $help = 0;
my $fix = 0;
my $warn = 0;
-if (! -d ".git") {
+if (! -e ".git") {
printf "Warning: can't check if file exists, as this is not a git tree\n";
exit 0;
}