documentation-file-ref-check: Make git check work for multiple working directories
PATCH 1/1 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.
--- scripts/documentation-file-ref-check | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/documentation-file-ref-check +1 -1
@@ -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; }
Signature · 1 line
2.27.0
Em Wed, 2 Jun 2021 20:28:06 -0500
Rob Herring <[email protected]> escreveu:
Quoted 2 lines
With multiple git working directories, '.git' may also be a text file linking to the actual git tree instead of a directory.
Good catch! Never tested inside a git worktree, as I use a separate git for docs patches due to a different [format] settings (due to a different c/c list).
Quoted 4 lines
Cc Mauro Carvalho Chehab <[email protected]>Cc Jonathan Corbet <[email protected]>Signed-off-by Rob Herring <[email protected]>
Quoted 9 lines
--- scripts/documentation-file-ref-check | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)scripts/documentation-file-ref-check +0
-0
scripts/documentation-file-ref-check my $help = 0; · line 30
Quoted 8 lines
scripts/documentation-file-ref-check +1
-1@@ -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; }
Thanks,
Mauro
Quoted 16 lines · Rob Herring
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]>Signed-off-by Rob Herring <[email protected]>--- scripts/documentation-file-ref-check | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)scripts/documentation-file-ref-check +0
-0
scripts/documentation-file-ref-check my $help = 0; · line 29
Quoted 7 lines
scripts/documentation-file-ref-check +1
-1@@ -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;
Applied, thanks.
jon