]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'bc/allow-upload-pack-from-other-people'
authorJunio C Hamano <gitster@pobox.com>
Tue, 10 Dec 2024 01:04:55 +0000 (10:04 +0900)
committerJunio C Hamano <gitster@pobox.com>
Tue, 10 Dec 2024 01:04:55 +0000 (10:04 +0900)
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

1  2 
Documentation/git-clone.txt
builtin/upload-pack.c
daemon.c
path.c
path.h
t/t5605-clone-local.sh

index 7acb4cb17618c6cbee5d6ebe41a53be03ebfaa6c,5347cc52554395074553ae0ba78dfec8b35cb4a5..de8d8f58930ecff305f79480b13ddce10cd96c60
@@@ -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 <src> <dst>` while modifying
 +_<src>_.
  
 ---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
Simple merge
diff --cc daemon.c
Simple merge
diff --cc path.c
Simple merge
diff --cc path.h
Simple merge
Simple merge