From: Junio C Hamano Date: Tue, 10 Dec 2024 01:04:55 +0000 (+0900) Subject: Merge branch 'bc/allow-upload-pack-from-other-people' X-Git-Tag: v2.48.0-rc0~21 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=35f40385e441d5aa885f5aa813539d5ed9dc2d26;p=thirdparty%2Fgit.git Merge branch 'bc/allow-upload-pack-from-other-people' Loosen overly strict ownership check introduced in the recent past, to keep the promise "cloning a suspicious repository is a safe first step to inspect it". * bc/allow-upload-pack-from-other-people: Allow cloning from repositories owned by another user --- 35f40385e441d5aa885f5aa813539d5ed9dc2d26 diff --cc Documentation/git-clone.txt index 7acb4cb176,5347cc5255..de8d8f5893 --- a/Documentation/git-clone.txt +++ b/Documentation/git-clone.txt @@@ -63,11 -63,14 +63,14 @@@ symbolic link, the clone will fail. Thi prevent the unintentional copying of files by dereferencing the symbolic links. + + This option does not work with repositories owned by other users for security + reasons, and `--no-local` must be specified for the clone to succeed. + + *NOTE*: this operation can race with concurrent modification to the -source repository, similar to running `cp -r src dst` while modifying -`src`. +source repository, similar to running `cp -r ` while modifying +__. ---no-hardlinks:: +`--no-hardlinks`:: Force the cloning process from a repository on a local filesystem to copy the files under the `.git/objects` directory instead of using hardlinks. This may be desirable