From 91ecee6088bb2e6ea832cb5a09e62cdcf6a08841 Mon Sep 17 00:00:00 2001 From: Ruslan Baidan Date: Wed, 12 May 2021 17:00:25 +0200 Subject: [PATCH] Reverted to the previous tags switch. --- scripts/update-all.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/update-all.sh b/scripts/update-all.sh index fe2b4be..295049b 100755 --- a/scripts/update-all.sh +++ b/scripts/update-all.sh @@ -32,8 +32,8 @@ done checkout_to_latest_tag() { if [ -d $1 ]; then pushd $1 - git fetch --tags -f - tag=$(git describe --tags) + git fetch --tags + tag=$(git describe --tags `git rev-list --tags --max-count=1`) git checkout $tag -b $tag git pull origin $tag popd