diff options
| author | Junio C Hamano <gitster@pobox.com> | 2023-04-20 14:33:36 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-04-20 14:33:36 -0700 |
| commit | a4a4db8cf7024b31ecd4b2c59cdcac41e81c91a2 (patch) | |
| tree | 708c8bd597b1bc45bcc5a68d7355c1843163a476 /Documentation | |
| parent | 98c496fcd09b5894966f3e499217eb2bdf8b964d (diff) | |
| parent | 4e33535ea98ac16d2163e8e9fcbba5e015881e65 (diff) | |
| download | git-a4a4db8cf7024b31ecd4b2c59cdcac41e81c91a2.tar.xz | |
Merge branch 'gc/better-error-when-local-clone-fails-with-symlink'
"git clone --local" stops copying from an original repository that
has symbolic links inside its $GIT_DIR; an error message when that
happens has been updated.
* gc/better-error-when-local-clone-fails-with-symlink:
clone: error specifically with --local and symlinked objects
Diffstat (limited to 'Documentation')
| -rw-r--r-- | Documentation/git-clone.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/git-clone.txt b/Documentation/git-clone.txt index d6434d262d..c37c4a37f7 100644 --- a/Documentation/git-clone.txt +++ b/Documentation/git-clone.txt @@ -58,6 +58,11 @@ never use the local optimizations). Specifying `--no-local` will override the default when `/path/to/repo` is given, using the regular Git transport instead. + +If the repository's `$GIT_DIR/objects` has symbolic links or is a +symbolic link, the clone will fail. This is a security measure to +prevent the unintentional copying of files by dereferencing the symbolic +links. ++ *NOTE*: this operation can race with concurrent modification to the source repository, similar to running `cp -r src dst` while modifying `src`. |
