From f5c23aa490d27f571f71af6e62b0d38d206f2206 Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Mon, 11 Dec 2023 09:40:35 -0500 Subject: [PATCH] ansible: Use HTTP/1.1 for git http operations on Debian bookworm When using HTTP/2 for git operations, git's use of libcurl can result in deadlocks with libcurl 7.84-8.4 as libcurl may call the read callback multiple times after EOF. @see https://lore.kernel.org/git/CAGE_+C5u9H8m5faK1vXKk6QTyjcHgKHqxOZy5ptzsYbF_0yrCQ@mail.gmail.com/ @see https://curl.se/mail/lib-2023-11/0017.html @see https://github.com/curl/curl/pull/12363 Fixes #1532 Change-Id: I1236d7bc8480c2b8316891b2572ce93f999ff4e4 --- automation/ansible/roles/common/tasks/setup-Debian.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/automation/ansible/roles/common/tasks/setup-Debian.yml b/automation/ansible/roles/common/tasks/setup-Debian.yml index d0df1c1..69cd5a7 100644 --- a/automation/ansible/roles/common/tasks/setup-Debian.yml +++ b/automation/ansible/roles/common/tasks/setup-Debian.yml @@ -97,3 +97,8 @@ repo: 'deb http://deb.debian.org/debian bookworm-backports main' - ansible.builtin.apt: upgrade: 'yes' + - name: Use HTTP/1.1 with git HTTP operations + community.general.git_config: + file: '/etc/gitconfig' + name: 'http.version' + value: 'HTTP/1.1' -- 2.34.1