]> xenbits.xensource.com Git - people/aperard/osstest.git/commit
ts-xen-build-prep: force use of git protocol v2
authorAnthony PERARD <anthony.perard@citrix.com>
Thu, 22 Jun 2023 09:09:18 +0000 (09:09 +0000)
committerAnthony PERARD <anthony.perard@citrix.com>
Tue, 18 Jul 2023 09:40:48 +0000 (10:40 +0100)
commit5c9d231f78bcc9d73c15aea2acb532b527617360
tree2d5029712f5f29490b00b5df865ccaa88afea45c
parent5f1f37fa0decd77f9ae66367ab0e497824706a95
ts-xen-build-prep: force use of git protocol v2

Recent version of QEMU (to be 8.1) started to use meson subproject to
clone extra repo. With the example of the subproject "dtc", they do a
shallow clone with a sha1. Meson end up running:

    git fetch --depth 1 origin b6910bec11614980a21e46fbccc35934b671bd81

This command fails. I think the error message is something like "the
remote end hung up unexpectedly", on Debian Buster. A more useful
message with more recent version of git seems to be "couldn't find
remote ref".

If we allow git to communicate with the protocol v2, then the shallow
clone works. But git on buster still use v1 by default. Force it to
use v2.

This needs a git-cache-proxy version that can allow to switch to v2 of
the protocol. A bug is open upstream to track this change:
    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1040476

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
Osstest/TestSupport.pm