]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/fetch.c
fetch: fix regression with transport helpers
authorFelipe Contreras <felipe.contreras@gmail.com>
Tue, 4 Jun 2019 02:13:30 +0000 (21:13 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 4 Jun 2019 18:28:58 +0000 (11:28 -0700)
commitf80d922355302abf07bf0cf9a2135c2eaa61f502
treebeccc837fc263e2e3ee50d80f606a2c57c374e76
parent9528b80b1a269540e12c95346f0c4b06a27dc37c
fetch: fix regression with transport helpers

Commit e198b3a740 changed the behavior of fetch with regards to tags.
Before, null oids where not ignored, now they are, regardless of whether
the refs have been explicitly cleared or not.

  e198b3a740 (fetch: replace string-list used as a look-up table with a hashmap)

When using a transport helper the oids can certainly be null. So now
tags are ignored and fetching them is impossible.

This patch fixes that by having a specific flag that is set only when we
explicitly want to ignore the refs, restoring the original behavior.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fetch.c
t/t5801-remote-helpers.sh