Ensure git exists to run git describe

Some packaging CI may include a .git directory for the
packaging but these need to use the packaging version,
not the git describe version. (Upstream changes will be
made using packaging patches, not a new tarball.)
These packaging jobs will not include git.

Signed-off-by: Neil Williams <neil.williams@linaro.org>
12 jobs from version in 8 minutes and 26 seconds (queued for 1 second)
latest
Status Job ID Name Coverage
  Test
passed #24886
amd64
dispatcher-debian-10

00:02:37

passed #24884
amd64
dispatcher-debian-9

00:03:00

passed #24887
amd64
server-debian-10

00:02:00

passed #24885
amd64
server-debian-9

00:02:30

 
  Analyze
passed #24888
amd64
black

00:00:22

passed #24889
amd64
codestyle

00:00:31

passed #24890
dind amd64 allowed to fail
sast

00:01:43

 
  Build
passed #24893
amd64
amd64/pkg-debian-10

00:01:30

passed #24892
amd64
amd64/pkg-debian-9

00:01:45

passed #24891
amd64
doc

00:01:10

 
  Docker
passed #24894
dind amd64
amd64/lava-dispatcher

00:00:46

passed #24895
dind amd64
amd64/lava-server

00:01:56