upload-pack: read config when serving protocol v2
authorJonathan Tan <jonathantanmy@google.com>
Thu, 3 May 2018 23:46:55 +0000 (16:46 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sun, 6 May 2018 04:17:19 +0000 (13:17 +0900)
commit5459268751941a71b32816902698376b7932cec5
tree1858d7a5da9b3ec8c53481410eddc9be59f8f3fb
parent7cc6ed2d06d6631726af9c14b5258d723c513327
upload-pack: read config when serving protocol v2

The upload-pack code paths never call git_config() with
upload_pack_config() when protocol v2 is used, causing options like
uploadpack.packobjectshook to not take effect. Ensure that this function
is called.

Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5702-protocol-v2.sh
upload-pack.c