Version-Anzeige: Neuesten Git-Tag statt Commit-Hash verwenden
This commit is contained in:
@@ -63,8 +63,10 @@ fi
|
||||
./scripts/backup-restic.sh
|
||||
|
||||
# Nur neueste Version holen (shallow fetch), vollständiges Repo ist im Deployment nicht nötig
|
||||
echo "📥 Fetching latest commit (shallow clone) from git..."
|
||||
git fetch --prune --tags --depth=1 origin master
|
||||
# Wichtig: Tags müssen vollständig geholt werden für Version-Anzeige
|
||||
echo "📥 Fetching latest commit and all tags from git..."
|
||||
git fetch --prune --tags origin master
|
||||
git fetch --tags origin
|
||||
git reset --hard origin/master
|
||||
|
||||
# Prüfe und erstelle/repariere Netzwerk falls nötig
|
||||
|
||||
Reference in New Issue
Block a user