diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2019-06-04 04:13:30 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-06-04 20:28:58 +0200 |
commit | f80d922355302abf07bf0cf9a2135c2eaa61f502 (patch) | |
tree | beccc837fc263e2e3ee50d80f606a2c57c374e76 /t/t5801-remote-helpers.sh | |
parent | fetch: make the code more understandable (diff) | |
download | git-f80d922355302abf07bf0cf9a2135c2eaa61f502.tar.xz git-f80d922355302abf07bf0cf9a2135c2eaa61f502.zip |
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>
Diffstat (limited to 't/t5801-remote-helpers.sh')
-rwxr-xr-x | t/t5801-remote-helpers.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t5801-remote-helpers.sh b/t/t5801-remote-helpers.sh index 4138354e00..1829ef29c7 100755 --- a/t/t5801-remote-helpers.sh +++ b/t/t5801-remote-helpers.sh @@ -301,7 +301,7 @@ test_expect_success 'fetch url' ' compare_refs server HEAD local FETCH_HEAD ' -test_expect_failure 'fetch tag' ' +test_expect_success 'fetch tag' ' (cd server && git tag v1.0 ) && |