Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2019-06-04 05:13:30 +0300
committerJunio C Hamano <gitster@pobox.com>2019-06-04 21:28:58 +0300
commitf80d922355302abf07bf0cf9a2135c2eaa61f502 (patch)
treebeccc837fc263e2e3ee50d80f606a2c57c374e76 /t/t5801-remote-helpers.sh
parent9528b80b1a269540e12c95346f0c4b06a27dc37c (diff)
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-xt/t5801-remote-helpers.sh2
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
) &&