Debian Stretch ships git 2.11.0, we need a more recent git to support protocol v2.
stretch-backports has 2.20.1, though backports magically disappear before the distribution end of LTS. But that can be done by using a component in our apt.
2.20.x should be enough (v2 history up to 2.27 listed at T256810#6270440)