upload-pack: optionally allow fetching any sha1
commitf8edeaa05d8623a9f6dad408237496c51101aad8
authorDavid Turner <dturner@twosigma.com>
Fri, 11 Nov 2016 17:23:48 +0000 (11 12:23 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 18 Nov 2016 21:06:14 +0000 (18 13:06 -0800)
treefaf475f7743ddb59bcde10bb1ba495f426153d45
parent296b847c0d6de63353e236cfbf94163d24155529
upload-pack: optionally allow fetching any sha1

It seems a little silly to do a reachabilty check in the case where we
trust the user to access absolutely everything in the repository.

Also, it's racy in a distributed system -- perhaps one server
advertises a ref, but another has since had a force-push to that ref,
and perhaps the two HTTP requests end up directed to these different
servers.

Signed-off-by: David Turner <dturner@twosigma.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.txt
Documentation/git-fetch-pack.txt
t/t5551-http-fetch-smart.sh
upload-pack.c