From 5b9e486b985bbaf0b88f6c6e015d0ba8bbdc2657 Mon Sep 17 00:00:00 2001 From: boban Date: Fri, 24 Apr 2026 13:46:50 +0200 Subject: [PATCH] Fix: --unshallow vor --tags fetch damit git describe funktioniert MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Shallow clones (--depth=1) kennen keine Tag-Historie. --unshallow konvertiert zuerst zum vollständigen Clone, danach sind alle Tags erreichbar. Co-Authored-By: Claude Sonnet 4.6 --- installer.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/installer.sh b/installer.sh index af52972..afe86d8 100644 --- a/installer.sh +++ b/installer.sh @@ -802,7 +802,8 @@ git config --global --add safe.directory "${APP_DIR}" || true # ===== Version-Datei schreiben ===== mkdir -p /var/lib/mailwolt -sudo -u "$APP_USER" -H bash -lc "git -C ${APP_DIR} fetch --tags --depth=1 origin 2>/dev/null || true" +sudo -u "$APP_USER" -H bash -lc "git -C ${APP_DIR} fetch --unshallow 2>/dev/null || true" +sudo -u "$APP_USER" -H bash -lc "git -C ${APP_DIR} fetch --tags origin 2>/dev/null || true" GIT_TAG="$(sudo -u "$APP_USER" -H bash -lc "git -C ${APP_DIR} describe --tags --abbrev=0 2>/dev/null || echo ''")" if [ -n "$GIT_TAG" ]; then echo "${GIT_TAG#v}" > /var/lib/mailwolt/version