I noticed a regression with running tests for git-remote-hg; can't seem to be able to fetch tags. Probably all remote helpers that use the import method are affected, if not all. The following patches are meant to test for the issue, fix it, and get some cleanups. I'm not exactly sure the solution is the one we want, but hopefull it gives an idea as to what is needed. Felipe Contreras (5): t5801 (remote-helpers): cleanup refspec stuff t5801 (remote-helpers): add test to fetch tags fetch: trivial cleanup fetch: make the code more understandable fetch: fix regression with transport helpers builtin/fetch.c | 28 ++++++++++++++++++---------- t/t5801-remote-helpers.sh | 18 ++++++++++++++---- t/t5801/git-remote-testgit | 22 +++++++++++++--------- 3 files changed, 45 insertions(+), 23 deletions(-) -- 2.21.0