Fifth reroll of [0]. The patch has been split into three commits, where the first is a small refactoring of the test file, the second is the original patch + tests, and the last one attempts to express the `transfer.hideRefs` behaviour more accurately in the docs. Thanks for your help and patience! This version of the patch is also available at [1]. [0]: https://lore.kernel.org/git/20210804205951.668140-1-kim@xxxxxxxxx/ [1]: https://github.com/kim/git/tree/ka/namespaced-want-ref-v5 Kim Altintop (3): t5730: introduce fetch command helper upload-pack.c: treat want-ref relative to namespace docs: clarify the interaction of transfer.hideRefs and namespaces Documentation/config/transfer.txt | 17 ++- t/t5703-upload-pack-ref-in-want.sh | 236 +++++++++++++++++++++++++---- upload-pack.c | 18 ++- 3 files changed, 224 insertions(+), 47 deletions(-) -- 2.32.0