]> git.ipfire.org Git - thirdparty/git.git/commit - fetch-pack.c
fetch-pack: add specific error for fetching an unadvertised object
authorMatt McCutchen <matt@mattmccutchen.net>
Wed, 22 Feb 2017 16:05:57 +0000 (11:05 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 2 Mar 2017 19:12:53 +0000 (11:12 -0800)
commitd56583ded679f2eade3994d855c8d605e2964710
tree0e0774cb387c973b2c97d8e9e2e06e34c3c2f382
parente70a65c5d89e4543491082d4b361398fd87433db
fetch-pack: add specific error for fetching an unadvertised object

Enhance filter_refs (which decides whether a request for an unadvertised
object should be sent to the server) to record a new match status on the
"struct ref" when a request is not allowed, and have
report_unmatched_refs check for this status and print a special error
message, "Server does not allow request for unadvertised object".

Signed-off-by: Matt McCutchen <matt@mattmccutchen.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
fetch-pack.c
remote.h
t/t5516-fetch-push.sh