From aa3a2125c697a31fb640fd9c9f72d63eff58c72c Mon Sep 17 00:00:00 2001 From: Fedja Beader Date: Thu, 14 Dec 2023 02:09:07 +0100 Subject: git describe fails with (too) shallow clones, so fetch tags explicitly Even if tags are fetched, the shallowness of the clone means they might still be inaccessible. --- .gitlab-ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ed664ab..5430c64 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,8 +22,11 @@ re:debian-stable: image: debian:stable variables: <<: *base_vars + GIT_DEPTH: 100 # Will break again eventually. script: - git submodule update --init + - git fetch -t + - printf "Building TMW Athena version %s\n" "$(git describe --tags HEAD)" - ./configure --user - make - make install -- cgit v1.2.3-70-g09d2