Documentation/git-clone.txt: document race with --local

When running 'git clone --local', the operation may fail if another process is modifying the source repository. Document that this race condition is known to hopefully help anyone who may run into it. Suggested-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Taylor Blau committed Jan 11, 2021 at 14:25 UTC a4a1ca22ef913adf3de9e72e525a2cd436742009
1 file changed +4
Documentation/git-clone.txt
+4
@@ -57,6 +57,10 @@ repository is specified as a URL, then this flag is ignored (and we
57 never use the local optimizations). Specifying `--no-local` will
58 override the default when `/path/to/repo` is given, using the regular
59 Git transport instead.
60 ++
61 +*NOTE*: this operation can race with concurrent modification to the
62 +source repository, similar to running `cp -r src dst` while modifying
63 +`src`.
64
65 --no-hardlinks::
66 Force the cloning process from a repository on a local