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