]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Documentation/git-clone.txt: document race with --local
authorTaylor Blau <me@ttaylorr.com>
Mon, 11 Jan 2021 19:25:10 +0000 (14:25 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 12 Jan 2021 06:03:08 +0000 (22:03 -0800)
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>
Documentation/git-clone.txt

index 876aedcd472a4b04ee28f3cc524195a701222db5..02d9c19cec7531db4ac9b592030a602d752bedcd 100644 (file)
@@ -57,6 +57,10 @@ repository is specified as a URL, then this flag is ignored (and we
 never use the local optimizations).  Specifying `--no-local` will
 override the default when `/path/to/repo` is given, using the regular
 Git transport instead.
++
+*NOTE*: this operation can race with concurrent modification to the
+source repository, similar to running `cp -r src dst` while modifying
+`src`.
 
 --no-hardlinks::
        Force the cloning process from a repository on a local