* [PATCH] documentation-file-ref-check: Make git check work for multiple working directories
@ 2021-06-03 1:28 Rob Herring
2021-06-03 6:34 ` Mauro Carvalho Chehab
2021-06-04 17:21 ` Jonathan Corbet
0 siblings, 2 replies; 3+ messages in thread
From: Rob Herring @ 2021-06-03 1:28 UTC (permalink / raw)
To: Jonathan Corbet; +Cc: Mauro Carvalho Chehab, linux-doc
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>
---
scripts/documentation-file-ref-check | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
}
--
2.27.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] documentation-file-ref-check: Make git check work for multiple working directories
2021-06-03 1:28 [PATCH] documentation-file-ref-check: Make git check work for multiple working directories Rob Herring
@ 2021-06-03 6:34 ` Mauro Carvalho Chehab
2021-06-04 17:21 ` Jonathan Corbet
1 sibling, 0 replies; 3+ messages in thread
From: Mauro Carvalho Chehab @ 2021-06-03 6:34 UTC (permalink / raw)
To: Rob Herring; +Cc: Jonathan Corbet, linux-doc
Em Wed, 2 Jun 2021 20:28:06 -0500
Rob Herring <robh@kernel.org> escreveu:
> 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).
> 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>
> ---
> scripts/documentation-file-ref-check | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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;
> }
Thanks,
Mauro
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] documentation-file-ref-check: Make git check work for multiple working directories
2021-06-03 1:28 [PATCH] documentation-file-ref-check: Make git check work for multiple working directories Rob Herring
2021-06-03 6:34 ` Mauro Carvalho Chehab
@ 2021-06-04 17:21 ` Jonathan Corbet
1 sibling, 0 replies; 3+ messages in thread
From: Jonathan Corbet @ 2021-06-04 17:21 UTC (permalink / raw)
To: Rob Herring; +Cc: Mauro Carvalho Chehab, linux-doc
Rob Herring <robh@kernel.org> writes:
> 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>
> ---
> scripts/documentation-file-ref-check | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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;
Applied, thanks.
jon
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-06-04 17:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-03 1:28 [PATCH] documentation-file-ref-check: Make git check work for multiple working directories Rob Herring
2021-06-03 6:34 ` Mauro Carvalho Chehab
2021-06-04 17:21 ` Jonathan Corbet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).