]> git.ipfire.org Git - thirdparty/git.git/commit - t/t5703-upload-pack-ref-in-want.sh
upload-pack.c: treat want-ref relative to namespace
authorKim Altintop <kim@eagain.st>
Fri, 13 Aug 2021 06:23:50 +0000 (06:23 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Sep 2021 14:54:18 +0000 (07:54 -0700)
commit39551406539e6ea87f89f619f7f0800e887e9b57
treec1f90380755e6638d4dcb682bceb6afaad3cf13a
parentbac01c6469b2489042b867d409894a3152ec98a1
upload-pack.c: treat want-ref relative to namespace

When 'upload-pack' runs within the context of a git namespace, treat any
'want-ref' lines the client sends as relative to that namespace.

Also check if the wanted ref is hidden via 'hideRefs'. If it is hidden,
respond with an error as if the ref didn't exist.

Helped-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Kim Altintop <kim@eagain.st>
Reviewed-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5703-upload-pack-ref-in-want.sh
upload-pack.c